File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ scope: source.gdl
99variables :
1010 escaped_byte : ' \\(n|t|\\)?'
1111 units : ' (e|mm?|cm|f(f|d)?i|d(f|i)|pt|sq(mm?|cm|f|i)|d(d|ms)|gr|rad|surv|(ga)?l|cu((c|m)?m|f|i|y))'
12- subroutine_name : ([0-9]+|(")[a-z_ ]+("))
12+ subroutine_name : ([0-9]+|(")[a-z_1-9 ]+("))
1313 function_names : |-
1414 (NOT|ABS|CEIL|INT|FRA|ROUND_INT|SGN|ACS|ASN|ATN|COS|SIN|TAN|EXP|LGT|LOG|SQR|MAX|MIN|RND
1515 |STR\{2\}|STR|SPLIT|STW|STRLEN|STRSTR|STRSUB|STRTOUPPER|STRTOLOWER|VARDIM[12]|BITTEST|BITSET
@@ -148,6 +148,10 @@ contexts:
148148 - match : (?i)({{subroutine_name}})
149149 scope : variable.function.gdl
150150 pop : true
151+ - include : main
152+ - match : (?i)\b(\w+)\b
153+ scope : variable.gdl
154+ pop : true
151155
152156 - match : (?i)(?<=^|\s)(FOR|TO|NEXT|DO|(END)?WHILE|REPEAT|UNTIL)\b
153157 scope : keyword.control.flow.gdl
@@ -514,7 +518,7 @@ contexts:
514518 scope: keyword.gdl.globals.request
515519
516520 globals-deprecated :
517- - match : (?i)\b([A-Z](_|~))\b
521+ - match : (?i)\b([A-Z](_\b |~))
518522 scope : keyword.gdl.globals.deprecated
519523
520524# ################ Buffer ##################
You can’t perform that action at this time.
0 commit comments