Skip to content

Commit 75f18c3

Browse files
committed
fix wrong styled gosubs
1 parent 79d306d commit 75f18c3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

GDL.sublime-syntax

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ scope: source.gdl
99
variables:
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 ##################

0 commit comments

Comments
 (0)