-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add language support for nginx config files
- Loading branch information
1 parent
f6d39cb
commit a01338a
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
; Script tags | ||
((lua_code) @injection.content | ||
(#set! injection.language "lua") | ||
(#set! injection.combined)) |