This commit is contained in:
Leandro Afonso
2025-09-27 18:39:59 +01:00
commit f0cdef9259
1220 changed files with 77975 additions and 0 deletions

16
micro/syntax/peg.yaml Normal file
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: " + +| + +"