diff options
Diffstat (limited to 'script/parser/ast.lua')
-rw-r--r-- | script/parser/ast.lua | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/script/parser/ast.lua b/script/parser/ast.lua index 127bb08c..68fd59d7 100644 --- a/script/parser/ast.lua +++ b/script/parser/ast.lua @@ -333,10 +333,11 @@ local Defs = { } } end - return { - type = 'nonstandardSymbol.comment', - start = start1, - finish = finish2 - 1, + PushComment { + start = start1, + finish = finish2 - 1, + semantic = true, + text = '', } end, CCommentPrefix = function (start, finish, commentFinish) @@ -356,10 +357,11 @@ local Defs = { } } end - return { - type = 'nonstandardSymbol.comment', - start = start, - finish = commentFinish - 1, + PushComment { + start = start, + finish = commentFinish - 1, + semantic = true, + text = '', } end, String = function (start, quote, str, finish) |