Update Lua syntax (#893)

* Edited Lua syntax ('hash' is not a comment in Lua).

* Edited Lua syntax - hash (#) is a symbol in Lua (the length operator).
This commit is contained in:
therainingmonkey
2017-10-21 06:10:46 +02:00
committed by Zachary Yedidia
parent 19ee4b281e
commit 31cd4b5795

View File

@@ -22,7 +22,7 @@ rules:
- constant: "\\b(false|nil|true)\\b"
- statement: "(\\b(dofile|require|include)|%q|%!|%Q|%r|%x)\\b"
- constant.number: "\\b([0-9]+)\\b"
- symbol: "(\\(|\\)|\\[|\\]|\\{|\\}|\\*\\*|\\*|/|%|\\+|-|\\^|>|>=|<|<=|~=|=|\\.\\.)"
- symbol: "(\\(|\\)|\\[|\\]|\\{|\\}|\\*\\*|\\*|/|%|\\+|-|\\^|>|>=|<|<=|~=|=|\\.\\.|#)"
- constant.string:
start: "\""
@@ -46,11 +46,6 @@ rules:
- special: "\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]|\\\\[abefnrs]|(\\\\c|\\\\C-|\\\\M-|\\\\M-\\\\C-)."
- comment:
start: "#"
end: "$"
rules: []
- comment:
start: "\\-\\-"
end: "$"