File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,22 @@ patterns:
1010- match : (?i)\b(\!NOCONTOUR|BAS|BOX|CONT|FILLA|FILTER|GDLBIN|HIP_ROOFS|(LIN|NOD)(E)?|ORIGO|PARS|PAUSE|PLOTMAKER|PLOTTER|RECT_|SFLINE|TET(RA)?|TRI|UI_(CANCEL|OK)|VOCA|WALL_)\b
1111 name : invalid.deprecated.gdl
1212
13+ # COMMENTS
1314- begin : ' !'
1415 end : $
1516 name : comment.line.gdl
1617
17- - match : ("(?:[^"\\]|\\.)*"|'(?:[^''\\]|\\.)*')
18- name : string.gdl
19-
20- # Subroutines like 100:
21- - match : (?i)(?<=^)([0-9]*:)(?=$|\s)
18+ # Subroutines like 100:, "whatever":
19+ - match : (?i)(?<=^)(([0-9]*|("([^"\\]|\\.)*"|'([^''\\]|\\.)*')):)(?=$|\s)
2220 name : entity.name.function.gdl
2321
2422# get GOTOs and GOSUBs
25- - match : (?i)(?<=GOSUB|GOTO)(\s+)([0-9]*)(?=$|\s|\+|\-|\*{1,2}|\^|\/)
23+ - match : (?i)(?<=GOSUB|GOTO)(\s+)([0-9]*|("([^"\\]|\\.)*"|'([^''\\]|\\.)*') )(?=$|\s|\+|\-|\*{1,2}|\^|\/)
2624 name : entity.name.function.gdl.jump
2725
26+ - match : ("(?:[^"\\]|\\.)*"|'(?:[^''\\]|\\.)*')
27+ name : string.gdl
28+
2829- match : (?i)(\+|\-|\^|\*{1,2}|\/|\=|<|>|<\=|>\=|<>|\#)|(?<=^|\s)(MOD|%|AND|&|OR|\||EXOR|\@)(?=$|\s|\()
2930 name : keyword.operator.gdl
3031
Original file line number Diff line number Diff line change 2727 </dict >
2828 <dict >
2929 <key >match </key >
30- <string >("(?:[ ^"\\]|\\.)*"|'(?: [^''\\]|\\.)*') </string >
30+ <string >(?i)(? < =^)(([0-9]*|("([ ^"\\]|\\.)*"|'([^''\\]|\\.)*')):)(?=$|\s ) </string >
3131 <key >name </key >
32- <string >string .gdl </string >
32+ <string >entity.name.function .gdl </string >
3333 </dict >
3434 <dict >
3535 <key >match </key >
36- <string >(?i)(?< =^)( [0-9]*:)( ?=$|\s) </string >
36+ <string >(?i)(?< =GOSUB|GOTO)(\s+)( [0-9]*|("([^"\\]|\\.)*"|'([^''\\]|\\.)*'))( ?=$|\s|\+|\-|\*{1,2}|\^|\/ ) </string >
3737 <key >name </key >
38- <string >entity.name.function.gdl </string >
38+ <string >entity.name.function.gdl.jump </string >
3939 </dict >
4040 <dict >
4141 <key >match </key >
42- <string >(?i)(? < =GOSUB|GOTO)(\s+)([0-9]*)(?=$|\s|\+|\-|\*{1,2}|\^|\/ ) </string >
42+ <string >("(?:[^"\\]|\\.)*"|'(?:[^''\\]|\\.)*' ) </string >
4343 <key >name </key >
44- <string >entity.name.function. gdl.jump </string >
44+ <string >string. gdl </string >
4545 </dict >
4646 <dict >
4747 <key >match </key >
You can’t perform that action at this time.
0 commit comments