micro/runtime/syntax/groff.yaml
2024-09-09 18:32:30 +02:00

28 lines
714 B
YAML

filetype: groff
detect:
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: "]"
- type: "^\\.[[:space:]]*[^[[:space:]]]*"
- comment: "^\\.\\\\\".*$"
- constant.string: "(\\\\|\\\\\\\\)\\*(.|\\(..)"
- constant.string:
start: "(\\\\|\\\\\\\\)\\*\\["
end: "]"
- constant.specialChar: "\\\\\\(.."
- constant.specialChar:
start: "\\\\\\["
end: "]"
- identifier.macro: "\\\\\\\\\\$[1-9]"