21 lines
490 B
YAML
21 lines
490 B
YAML
filetype: pdl
|
|
|
|
detect:
|
|
filename: "\\.pdl$"
|
|
|
|
rules:
|
|
- preproc: "\\bM[0-9a-fA-F]{4}\\b"
|
|
|
|
- type: "\\b((U|I)(5|8|16|32|64|128|256)|F(16|32|64|128|256)|Bool|String|Buffer|Table|Any)\\b"
|
|
|
|
- symbol.brackets: "(\\{|\\}|\\[\\])"
|
|
- symbol.operator: "\\?"
|
|
|
|
- constant.number: "\\b[0-9a-fA-F]{4}\\b"
|
|
|
|
- comment:
|
|
start: "//"
|
|
end: "$"
|
|
rules:
|
|
- todo: "(TODO|XXX|FIXME|BUG):?"
|