diff --git a/syntaxes/highlight-sql-string.json b/syntaxes/highlight-sql-string.json index e93945a..e044fcd 100644 --- a/syntaxes/highlight-sql-string.json +++ b/syntaxes/highlight-sql-string.json @@ -1,24 +1,23 @@ { - "fileTypes": [ - "py" - ], - "injectionSelector": "L:string.quoted.multi", - "patterns": [ - { - "begin": "(--sql|--beginsql|--begin-sql)", - "end": "(;|--endsql|--end-sql)", - "captures": { - "1": { - "name": "variable.parameter" - } - }, - "patterns": [ - { - "include": "source.sql" - } - ] - } - ], - "scopeName": "python-sql.injection" -} - \ No newline at end of file + "fileTypes": [ + "py" + ], + "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)", + "end": "(;|--endsql|--end-sql)", + "captures": { + "1": { + "name": "variable.parameter" + } + }, + "patterns": [ + { + "include": "source.sql" + } + ] + } + ], + "scopeName": "python-sql.injection" +} \ No newline at end of file