Skip to content

Commit 4cb45a3

Browse files
author
Monte Goulding
committed
Added shebang handler, emacs style mode comment to determine scope and updated local variable to match theVar in addition to tVar.
1 parent 4ba4195 commit 4cb45a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grammars/livecodescript.cson

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
'fileTypes': [
77
'livecodescript'
88
]
9+
'firstLineMatch': '^#!.*\\b(livecode|/usr/bin/env livecode)|^#\\s*-\\*-[^*]*mode:\\s*livecodescript[^*]*-\\*-'
910
'patterns': [
1011
{
1112
include: "#language"
@@ -192,7 +193,7 @@ repository:
192193
captures:
193194
"1":
194195
name: "punctuation.definition.variable.livecodescript"
195-
match: "\\b(t)[A-Z]{1}.*?\\b"
196+
match: "\\b(t|the)[A-Z]{1}.*?\\b"
196197
name: "variable.other.global.livecodescript"
197198
var_parameter:
198199
captures:

0 commit comments

Comments
 (0)