14 lines
333 B
YAML
14 lines
333 B
YAML
|
filetype: sed
|
||
|
|
||
|
detect:
|
||
|
filename: "\\.sed$"
|
||
|
header: "^#!.*bin/(env +)?sed( |$)"
|
||
|
|
||
|
rules:
|
||
|
- symbol.operator: "[|^$.*+]"
|
||
|
- constant.number: "\\{[0-9]+,?[0-9]*\\}"
|
||
|
- constant.specialChar: "\\\\."
|
||
|
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||
|
- indent-char.whitespace: "[[:space:]]+$"
|
||
|
- indent-char: " + +| + +"
|