]> git.lizzy.rs Git - micro.git/commitdiff
Syntax Highlighting Support for FreeBSD Kernel Configuration Files (#2220)
authorTogoorooDev <hens25252@protonmail.com>
Fri, 24 Sep 2021 21:39:46 +0000 (14:39 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 21:39:46 +0000 (14:39 -0700)
* added FreeBSD kernel configuration file format

* updated format, notably to highlight the word 'include'

runtime/syntax/freebsd-kernel.yaml [new file with mode: 0644]

diff --git a/runtime/syntax/freebsd-kernel.yaml b/runtime/syntax/freebsd-kernel.yaml
new file mode 100644 (file)
index 0000000..2e42568
--- /dev/null
@@ -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):?"