Add syntax_checker.go

Please use this file to check if the syntax files compile.
This commit is contained in:
Zachary Yedidia
2017-02-18 10:08:49 -05:00
parent e690c2cd5e
commit 9838375668
3 changed files with 47 additions and 6 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ rules:
- special: "^[[:space:]]*[#|@][[:space:]]*(import|include)[[:space:]]*[\"|<].*\\/?[>|\"][[:space:]]*$"
- statement: "([.:;,+*|=!\\%\\[\\]]|<|>|/|-|&)"
- statement: "([.:;,+*|=!\\%\\[\\]]|<|>|/|-|&)"
- constant.number: "(\\b(-?)?[0-9]+\\b|\\b\\[0-9]+\\.[0-9]+\\b|\\b0x[0-9A-F]+\\b)"
- constant: "(@\\[(\\\\.|[^\\]])*\\]|@\\{(\\\\.|[^\\}])*\\}|@\\((\\\\.|[^\\)])*\\))"