micro/runtime/syntax/groff.yaml

31 lines
768 B
YAML
Raw Normal View History

2017-03-21 21:55:22 +03:00
filetype: groff
detect:
2017-03-21 21:55:22 +03:00
filename: "\\.m[ems]$|\\.rof|\\.tmac$|^tmac."
rules:
- statement: "^\\.(ds|nr) [^[[:space:]]]*"
- constant.specialChar: "\\\\."
- constant.specialChar: "\\\\f.|\\\\f\\(..|\\\\s(\\+|\\-)?[0-9]"
- constant: "(\\\\|\\\\\\\\)n(.|\\(..)"
- constant:
start: "(\\\\|\\\\\\\\)n\\["
end: "]"
rules: []
- type: "^\\.[[:space:]]*[^[[:space:]]]*"
- comment: "^\\.\\\\\".*$"
- constant.string: "(\\\\|\\\\\\\\)\\*(.|\\(..)"
- constant.string:
start: "(\\\\|\\\\\\\\)\\*\\["
end: "]"
rules: []
- constant.specialChar: "\\\\\\(.."
- constant.specialChar:
start: "\\\\\\["
end: "]"
rules: []
- identifier.macro: "\\\\\\\\\\$[1-9]"