Syntax Highlighting Support for FreeBSD Kernel Configuration Files (#2220)
* added FreeBSD kernel configuration file format * updated format, notably to highlight the word 'include'
This commit is contained in:
parent
a417ec4dcb
commit
395bfc2307
1 changed files with 14 additions and 0 deletions
14
runtime/syntax/freebsd-kernel.yaml
Normal file
14
runtime/syntax/freebsd-kernel.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
filetype: freebsd-kernel
|
||||||
|
|
||||||
|
detect:
|
||||||
|
filename: "GENERIC$"
|
||||||
|
|
||||||
|
rules:
|
||||||
|
- identifier: "^(cpu|ident|options|makeoptions|device|include)"
|
||||||
|
- statement: "\\s\\S*"
|
||||||
|
|
||||||
|
- comment:
|
||||||
|
start: "#"
|
||||||
|
end: "$"
|
||||||
|
rules:
|
||||||
|
- todo: "(TODO|XXX|FIXME):?"
|
Loading…
Reference in a new issue