2024-08-12 15:07:59 -06:00
|
|
|
# Happen to use Micro to edit text?
|
|
|
|
# Drop this in ~/.config/micro/syntax and get syntax highlighting for TSS files!
|
|
|
|
|
|
|
|
filetype: tss
|
|
|
|
|
|
|
|
detect:
|
|
|
|
filename: "\\.tss$"
|
|
|
|
|
|
|
|
rules:
|
|
|
|
- type: "\\b([A-Z][a-zA-Z0-9]*).*:"
|
|
|
|
- identifier.var: "\\$[a-zA-Z0-9]*\\b"
|
|
|
|
- identifier.class: "(\\*|[a-z][a-zA-Z0-9]*)\\.(\\*|[A-Z][a-zA-Z0-9]*)"
|
2024-08-12 15:26:31 -06:00
|
|
|
- constant: "\\b(tile|center)\\b"
|
|
|
|
- constant: "\\b(start|middle|end|even)\\b"
|
|
|
|
- constant.bool: "\\b(true|false)\\b"
|
2024-08-12 15:07:59 -06:00
|
|
|
- special: "(\\/|,|\\;|:|\\.)"
|
|
|
|
- symbol.operator: "(=|\\*)"
|
|
|
|
- symbol.brackets: "(\\{\\[|\\}\\])"
|
|
|
|
|
|
|
|
- comment:
|
|
|
|
start: "//"
|
|
|
|
end: "$"
|
|
|
|
rules:
|
|
|
|
- todo: "(TODO|XXX|FIXME|BUG):?"
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
start: "\""
|
|
|
|
end: "\""
|
|
|
|
skip: "\\\\."
|
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
|
|
|
|
- constant.specialChar: "\\\\([0-7]{3})"
|
|
|
|
|
|
|
|
- constant.number: "\\b[0-9][0-9.]*\\b"
|
|
|
|
- constant.string: "\\B#[0-9a-fA-F]*"
|