diff --git a/ssc/ast/nodes.keywords.cs b/ssc/ast/nodes.keywords.cs index a03e248..fc85730 100644 --- a/ssc/ast/nodes.keywords.cs +++ b/ssc/ast/nodes.keywords.cs @@ -3,4 +3,9 @@ public sunConstKeyword(sunSourceLocation location) : base(location) { } } + + class sunLocalKeyword : sunNode { + public sunLocalKeyword(sunSourceLocation location) + : base(location) { } + } } diff --git a/ssc/parser.cs b/ssc/parser.cs index a62318c..b964394 100644 --- a/ssc/parser.cs +++ b/ssc/parser.cs @@ -217,6 +217,9 @@ namespace arookas { } } } + if (id == __sunConstants.LOCAL) { + return new sunLocalKeyword(location); + } // emergency fallback return null;