Skip to content

Commit 387b0e5

Browse files
authored
Merge pull request Submersible#1 from feluxe/master
Add f-string support
2 parents fee8d2c + 7979607 commit 387b0e5

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

syntaxes/highlight-sql-string.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
{
2-
"fileTypes": [
3-
"py"
4-
],
5-
"injectionSelector": "L:string.quoted.multi",
6-
"patterns": [
7-
{
8-
"begin": "(--sql|--beginsql|--begin-sql)",
9-
"end": "(;|--endsql|--end-sql)",
10-
"captures": {
11-
"1": {
12-
"name": "variable.parameter"
13-
}
14-
},
15-
"patterns": [
16-
{
17-
"include": "source.sql"
18-
}
19-
]
20-
}
21-
],
22-
"scopeName": "python-sql.injection"
23-
}
24-
2+
"fileTypes": [
3+
"py"
4+
],
5+
"injectionSelector": "L:string.quoted.multi.python, L:meta.fstring.python - (comment.line.number-sign.python, punctuation.definition.comment.python)",
6+
"patterns": [
7+
{
8+
"begin": "(--sql|--beginsql|--begin-sql)",
9+
"end": "(;|--endsql|--end-sql)",
10+
"captures": {
11+
"1": {
12+
"name": "variable.parameter"
13+
}
14+
},
15+
"patterns": [
16+
{
17+
"include": "source.sql"
18+
}
19+
]
20+
}
21+
],
22+
"scopeName": "python-sql.injection"
23+
}

0 commit comments

Comments
 (0)