mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 12:37:38 +03:00
17 lines
488 B
YAML
17 lines
488 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: " + +| + +"
|