File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,13 @@ patterns:
1818 name : string.gdl
1919
2020# Subroutines like 100:
21- - match : (?i)(\b [0-9]*:)(?=$|\s)
21+ - match : (?i)(?<=^)( [0-9]*:)(?=$|\s)
2222 name : entity.name.function.gdl
2323
24+ # get GOTOs and GOSUBs
25+ - match : (?i)(?<=GOSUB|GOTO)(\s+)([0-9]*)(?=$|\s|\+|\-|\*{1,2}|\^|\/)
26+ name : entity.name.function.gdl.jump
27+
2428- match : (?i)(\+|\-|\^|\*{1,2}|\/|\=|<|>|<\=|>\=|<>|\#)|(?<=^|\s)(MOD|%|AND|&|OR|\||EXOR|\@)(?=$|\s|\()
2529 name : keyword.operator.gdl
2630
@@ -177,7 +181,7 @@ patterns:
177181- match : (?i)(?<=")((BLUE|RED|GREEN)_OF_(PEN|MATERIAL)|GDL_VERSION|MODEL_SIZE|PEN_OF_RGB|PROGRAM|SERIAL_NUMBER|ANCESTRY_INFO|(ANGULAR_(LENGTH_)?|AREA_|RADIAL_|SILL_HEIGHT_)DIMENSION|(ASSOCEL|MATCHING)_PROPERTIES|ASSOCLP_(NAME|PARVALUE)|CALC_(ANGLE|AREA|LENGTH|VOLUME)_UNIT|CLEAN_INTERSECTIONS|CONSTR_FILLS_DISPLAY|CUSTOM_AUTO_LABEL|DATETIME|DOOR_SHOW_DIM|(ELEVATION|LEVEL|LINEAR)_DIMENSION|FONTNAMES_LIST|HEIGHT_OF_STYLE|HOME(_STORY|DB_INFO)|ID_OF_MAIN|INTERNAL_ID|NAME_OF_(FILL|LINE_TYPE|LISTED|MACRO|MAIN|MATERIAL|PLAN|PROGRAM|STYLE)|REFERENCE_DATA_LEVEL|RGB_OF_(MATERIAL|PEN)|STORY(_INFO)?|(STYLE|TEXTBLOCK)_INFO|WINDOW_(DOOR_(DIMENSION|SHOW_DIM|ZONE_RELEV)|SHOW_DIM)|WORKING_(ANGLE|LENGTH)_UNIT|ZONE_(CATEGORY|COLUS_AREA|RELATIONS)|MATERIAL_INFO)(?="|\s)
178182 name : keyword.gdl.globals.request
179183
180- - match : (?i)(?<=^|\s)([ABCDEFG]|ZZYZX|ac_\w+|ROOM_([a-z]|_)+)(?=$|\s|= )
184+ - match : (?i)(?<=^|\s|\+|\-|\^|\*|\*\*|\/|\=|<|>|<\=|>\=|<>|\#|=|%|&|\||\@ )([ABCDEFG]|ZZYZX|ac_\w+|ROOM_([a-z]|_)+)(?=$|\s|\+|\-|\^|\*|\*\*|\/|\=|<|>|<\=|>\=|<>|\#|=|%|&|\||\@ )
181185 name : keyword.gdl.optionalparameters
182186
183187- match : (?i)(\b)(PUT|GET|USE|NSP)(\b)
Original file line number Diff line number Diff line change 3333 </dict >
3434 <dict >
3535 <key >match </key >
36- <string >(?i)(\b [0-9]*:)(?=$|\s) </string >
36+ <string >(?i)(? < =^)( [0-9]*:)(?=$|\s) </string >
3737 <key >name </key >
3838 <string >entity.name.function.gdl </string >
3939 </dict >
40+ <dict >
41+ <key >match </key >
42+ <string >(?i)(?< =GOSUB|GOTO)(\s+)([0-9]*)(?=$|\s|\+|\-|\*{1,2}|\^|\/) </string >
43+ <key >name </key >
44+ <string >entity.name.function.gdl.jump </string >
45+ </dict >
4046 <dict >
4147 <key >match </key >
4248 <string >(?i)(\+|\-|\^|\*{1,2}|\/|\=|< |> |< \=|> \=|<> |\#)|(?< =^|\s)(MOD|%|AND|& |OR|\||EXOR|\@)(?=$|\s|\() </string >
347353 </dict >
348354 <dict >
349355 <key >match </key >
350- <string >(?i)(?< =^|\s)([ABCDEFG]|ZZYZX|ac_\w+|ROOM_([a-z]|_)+)(?=$|\s|= ) </string >
356+ <string >(?i)(?< =^|\s|\+|\-|\^|\*|\*\*|\/|\=| < | > | < \=| > \=| <> |\#|=|%| & |\||\@ )([ABCDEFG]|ZZYZX|ac_\w+|ROOM_([a-z]|_)+)(?=$|\s|\+|\-|\^|\*|\*\*|\/|\=| < | > | < \=| > \=| <> |\#|=|%| & |\||\@ ) </string >
351357 <key >name </key >
352358 <string >keyword.gdl.optionalparameters </string >
353359 </dict >
You can’t perform that action at this time.
0 commit comments