]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/peg.yaml
Ignore tool files
[micro.git] / runtime / syntax / peg.yaml
1 filetype: peg
2
3 detect: 
4     filename: "\\.l?peg$"
5
6 rules:
7     - identifier: "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
8     - constant.number: "\\^[+-]?[0-9]+"
9     - symbol.operator: "[-+*?^/!&]|->|<-|=>"
10     - identifier.var: "%[A-Za-z][A-Za-z0-9_]*"
11     - special: "\\[[^]]*\\]"
12     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
13     - comment: "(^|[[:space:]])\\-\\-.*$"
14     - todo: "TODO:?"
15     - indent-char.whitespace: "[[:space:]]+$"
16     - indent-char: "    + +| +  +"