File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 60
60
"embeddedSQL" : {
61
61
"patterns" : [
62
62
{
63
- "begin" : " (?i)(&sql)(\\ ()" ,
63
+ "begin" : " (?i)((?:&|##)sql)(\\ ()" ,
64
+ "end" : " \\ )" ,
64
65
"beginCaptures" : {
65
66
"1" : { "name" : " keyword.special.sql.objectscript" },
66
67
"2" : { "name" : " punctuation.objectscript" }
67
68
},
68
- "patterns " : [ { "include " : " source.sql " }] ,
69
+ "endCaptures " : { "0 " : { "name" : " punctuation.objectscript " } } ,
69
70
"contentName" : " meta.embedded.block.sql" ,
70
- "end" : " \\ )"
71
+ "applyEndPatternLast" : 1 ,
72
+ "patterns" : [
73
+ { "include" : " #embeddedSQL-brackets" },
74
+ { "include" : " source.sql" }
75
+ ]
71
76
}
72
- ]
77
+ ],
78
+ "repository" : {
79
+ "embeddedSQL-brackets" : {
80
+ "begin" : " (?<=\\ ()(?!\\ G)" ,
81
+ "end" : " \\ )" ,
82
+ "patterns" : [
83
+ { "include" : " #embeddedSQL-brackets" },
84
+ { "include" : " source.sql" }
85
+ ]
86
+ }
87
+ }
73
88
},
74
89
"embeddedJS" : {
75
90
"patterns" : [
You can’t perform that action at this time.
0 commit comments