File: peg.yaml

package info (click to toggle)
micro 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,828 kB
  • sloc: sh: 247; makefile: 77; xml: 53
file content (16 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: "	+ +| +	+"