summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/newparser.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index c160889b..23b8d07e 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -606,6 +606,14 @@ local function parseLocalAttrs()
attr[1] = word
attr.finish = wfinish
Index = Index + 2
+ if word ~= 'const'
+ and word ~= 'close' then
+ pushError {
+ type = 'UNKNOWN_ATTRIBUTE',
+ start = wstart,
+ finish = wfinish,
+ }
+ end
else
missName()
end