Fix(grammar): Correct Unicode string prefix highlighting
This commit is contained in:
1 parent
7ddfae291d
commit
4b46885be2
2 files changed
+1
-7
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
@@ -6,9 +6,6 @@
|
|||||||
"name": "meta.dynamic-sql.literal.sql",
|
"name": "meta.dynamic-sql.literal.sql",
|
||||||
"begin": "(?i:(?<![A-Za-z0-9_])(N)?(')(?:(?=[ \\t]*;?[ \\t]*(?:SELECT|WITH|INSERT|UPDATE|DELETE|MERGE|EXEC(?:UTE)?|CREATE|ALTER|DROP|DECLARE|SET|USE|FROM|WHERE|JOIN|IF|HAVING|UNION|GROUP[ \\t]+BY|ORDER[ \\t]+BY)\\b)|(?=[ \\t]*;?[ \\t]*$)))",
|
"begin": "(?i:(?<![A-Za-z0-9_])(N)?(')(?:(?=[ \\t]*;?[ \\t]*(?:SELECT|WITH|INSERT|UPDATE|DELETE|MERGE|EXEC(?:UTE)?|CREATE|ALTER|DROP|DECLARE|SET|USE|FROM|WHERE|JOIN|IF|HAVING|UNION|GROUP[ \\t]+BY|ORDER[ \\t]+BY)\\b)|(?=[ \\t]*;?[ \\t]*$)))",
|
||||||
"beginCaptures": {
|
"beginCaptures": {
|
||||||
"1": {
|
|
||||||
"name": "storage.type.string.sql"
|
|
||||||
},
|
|
||||||
"2": {
|
"2": {
|
||||||
"name": "punctuation.definition.string.begin.sql"
|
"name": "punctuation.definition.string.begin.sql"
|
||||||
}
|
}
|
||||||
@@ -36,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "string.quoted.single.sql",
|
"name": "string.quoted.single.sql",
|
||||||
"match": "''(?:[^']|'')*?''"
|
"match": "(?i:(?<![A-Za-z0-9_])N)?''(?:[^']|'')*?''"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "constant.character.escape.sql",
|
"name": "constant.character.escape.sql",
|
||||||
@@ -97,9 +94,6 @@
|
|||||||
"name": "string.quoted.single.sql",
|
"name": "string.quoted.single.sql",
|
||||||
"begin": "(?i:(?<![A-Za-z0-9_])(N))?(')",
|
"begin": "(?i:(?<![A-Za-z0-9_])(N))?(')",
|
||||||
"beginCaptures": {
|
"beginCaptures": {
|
||||||
"1": {
|
|
||||||
"name": "storage.type.string.sql"
|
|
||||||
},
|
|
||||||
"2": {
|
"2": {
|
||||||
"name": "punctuation.definition.string.begin.sql"
|
"name": "punctuation.definition.string.begin.sql"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user