micro/runtime/syntax/peg.yaml
Yevhen Babiichuk (DustDFG) 426e6c600f
Fix trailing spaces/tabs in yaml syntax files (#3200)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2024-03-22 17:56:09 +01:00

17 lines
487 B
YAML

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: " + +| + +"