Feat: Add syntax highlighting for a lot more languages

This commit is contained in:
2025-12-26 20:46:36 +00:00
parent 9ff3a32abd
commit 655f0e7d77
64 changed files with 9030 additions and 1607 deletions

54
grammar/nginx.scm Normal file
View File

@@ -0,0 +1,54 @@
;; #99ADBF #000000 0 1 0 1
(comment) @comment
;; #7dcfff #000000 0 0 0 2
(number) @number
(metric) @number
;; !regex
(regex) @regex
;; #FFFFFF #000000 0 0 0 1
(variable) @variable
;; #F29668 #000000 0 0 0 1
(modifier) @operator
;; #D2A6FF #000000 0 0 0 1
(simple_directive
name: (directive) @function)
;; #D2A6FF #000000 0 0 0 1
(block_directive
name: (directive) @function)
;; #D2A6FF #000000 0 0 0 1
(lua_block_directive
"access_by_lua_block" @function)
;; #F07178 #000000 0 0 0 1
((generic) @constant.builtin
(#match? @constant.builtin "^(off|on)$"))
;; #AAD94C #000000 0 0 0 2
(generic) @string
(string) @string
;; #FFFFFF #000000 0 0 0 1
(scheme) @string
(ipv4) @number
;; #888888 #000000 0 1 0 3
[
";"
] @delimiter
;; #888888 #000000 0 0 0 3
[
"{"
"}"
"("
")"
"["
"]"
] @punctuation.bracket