Skip to content

Commit 36673c4

Browse files
Tinkering to get functions right!
The difference between a function and a variable declaration is that a function beings with `(` after the identifier, while variables are declared finishing with an assignment (which can be an expression). This might require further tinkering. TODO: deal with scopes!
1 parent 44bb76b commit 36673c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/Linden Scripting Language.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<collection name="variables">
106106
<scope name="lsl.definition.variable.local">
107107
<symbol type="variable" scope="local" />
108-
<expression>\b(float|integer|key|list|quaternion|rotation|string|vector)\s+([a-zA-Z_][A-Za-z0-9_]*)\s*(\=)?</expression>
108+
<expression>\b(float|integer|key|list|quaternion|rotation|string|vector)\s+([a-zA-Z_][A-Za-z0-9_]*)\s*(\=|\;|\,)</expression>
109109
<capture number="1" name="lsl.identifier.type" />
110110
<capture number="2" name="lsl.identifier.name" />
111111
<capture number="3" name="lsl.operator" />

0 commit comments

Comments
 (0)