Skip to content

Commit d3cf13f

Browse files
committed
recompile the TextMate grammar
1 parent 5716760 commit d3cf13f

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

syntaxes/ql.tmLanguage.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@
108108
"match": "(?x)\\]",
109109
"name": "punctuation.squarebracket.close.ql"
110110
},
111+
"open-angle": {
112+
"match": "(?x)<",
113+
"name": "punctuation.anglebracket.open.ql"
114+
},
115+
"close-angle": {
116+
"match": "(?x)>",
117+
"name": "punctuation.anglebracket.close.ql"
118+
},
111119
"operator-or-punctuation": {
112120
"patterns": [
113121
{
@@ -151,6 +159,12 @@
151159
},
152160
{
153161
"include": "#close-bracket"
162+
},
163+
{
164+
"include": "#open-angle"
165+
},
166+
{
167+
"include": "#close-angle"
154168
}
155169
]
156170
},
@@ -723,6 +737,27 @@
723737
}
724738
]
725739
},
740+
"instantiation-arguments": {
741+
"end": "(?x)#close-angle",
742+
"patterns": [
743+
{
744+
"include": "#potential-instantiation"
745+
}
746+
],
747+
"begin": "(?x)((?:<))",
748+
"beginCaptures": {
749+
"1": {
750+
"patterns": [
751+
{
752+
"include": "#open-angle"
753+
}
754+
]
755+
}
756+
}
757+
},
758+
"potential-instantiation": {
759+
"matches": "(?#simple-id) (?#instantiation-arguments)?"
760+
},
726761
"import-directive": {
727762
"end": "(?x)(?:\\b [A-Za-z][0-9A-Za-z_]* (?:(?!(?:[0-9A-Za-z_])))) (?!\\s*(\\.|\\:\\:))",
728763
"endCaptures": {
@@ -736,7 +771,7 @@
736771
"include": "#non-context-sensitive"
737772
},
738773
{
739-
"match": "(?x)(?:\\b [A-Za-z][0-9A-Za-z_]* (?:(?!(?:[0-9A-Za-z_]))))",
774+
"match": "(?x)(?:)",
740775
"name": "entity.name.type.namespace.ql"
741776
}
742777
],

0 commit comments

Comments
 (0)