mirror of https://github.com/helix-editor/helix
feat: Add language support for nginx config files
parent
f6d39cbc1d
commit
a01338af30
@ -0,0 +1,44 @@
|
||||
(comment) @comment
|
||||
|
||||
(number) @number
|
||||
(metric) @number
|
||||
|
||||
(regex) @regex
|
||||
|
||||
(variable) @variable
|
||||
|
||||
(modifier) @operator
|
||||
|
||||
(simple_directive
|
||||
name: (directive) @function)
|
||||
|
||||
(block_directive
|
||||
name: (directive) @function)
|
||||
|
||||
(lua_block_directive
|
||||
"access_by_lua_block" @function)
|
||||
|
||||
((generic) @constant.builtin
|
||||
(#match? @constant.builtin "^(off|on)$"))
|
||||
|
||||
(generic) @string
|
||||
(string) @string
|
||||
|
||||
(scheme) @string
|
||||
(ipv4) @number
|
||||
|
||||
[
|
||||
";"
|
||||
] @delimiter
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Lua Debug
|
||||
(lua_code) @definition.type
|
@ -0,0 +1,4 @@
|
||||
; Script tags
|
||||
((lua_code) @injection.content
|
||||
(#set! injection.language "lua")
|
||||
(#set! injection.combined))
|
Loading…
Reference in New Issue