Many optimizations and new syntax files

This commit is contained in:
Zachary Yedidia
2017-03-26 19:14:03 -04:00
parent 56f3992cdb
commit 084c2be66c
103 changed files with 2079 additions and 342 deletions
+16
View File
@@ -0,0 +1,16 @@
filetype: peg
detect:
filename: "\\.l?peg$"
rules:
- identifier: "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
- constant.number: "\\^[+-]?[0-9]+"
- symbol.operator: "[-+*?^/!&]|->|<-|=>"
- identifier.var: "%[A-Za-z][A-Za-z0-9_]*"
- special: "\\[[^]]*\\]"
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
- comment: "(^|[[:space:]])\\-\\-.*$"
- todo: "TODO:?"
- indent-char.whitespace: "[[:space:]]+$"
- indent-char: " + +| + +"