Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions syntaxes/highlight-sql-string.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@
"injectionSelector": "L:string.quoted.multi.python, L:meta.fstring.python - (comment.line.number-sign.python, punctuation.definition.comment.python)",
"patterns": [
{
"begin": "( *--sql| *--beginsql| *--begin-sql)",
Copy link

@cikay cikay Nov 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not recommend to remove the current identifiers. It would break all implementation. Add new ones but do not remove the current ones.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks for getting to this :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you are not maintainer haha. You're probably right but ill wait to hear from repo owner/member if they are still alive...

"end": "( *;| *--endsql| *--end-sql)",
"captures": {
"1": {
"name": "variable.parameter"
}
"name": "meta.embedded.sql",
"begin": "\\s*((select|with)|(--.*))",
"end": "(?=\"\"\")",
"beginCaptures": {
"2": { "name": "keyword.other.DML.sql" },
"3": { "name": "comment.line.double-dash.sql" }
},
"patterns": [
{
"include": "source.sql"
}
{ "include": "source.sql" }
]
}
],
"scopeName": "python-sql.injection"
}
}