mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
59
runtime/queries/git_config/highlights.scm
Normal file
59
runtime/queries/git_config/highlights.scm
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
; Sections
|
||||
(section_name) @markup.heading
|
||||
|
||||
((section_name) @keyword.import
|
||||
(#eq? @keyword.import "include"))
|
||||
|
||||
((section_header
|
||||
(section_name) @keyword.import
|
||||
(subsection_name))
|
||||
(#eq? @keyword.import "includeIf"))
|
||||
|
||||
(variable
|
||||
(name) @property)
|
||||
|
||||
; Operators
|
||||
"=" @operator
|
||||
|
||||
; Literals
|
||||
(integer) @number
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
] @boolean
|
||||
|
||||
(string) @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
((string) @string.special.path
|
||||
(#lua-match? @string.special.path "^[.]?[.]?[/]"))
|
||||
|
||||
((string) @string.special.path
|
||||
(#lua-match? @string.special.path "^[~]"))
|
||||
|
||||
(section_header
|
||||
[
|
||||
"\""
|
||||
(subsection_name)
|
||||
] @string.special)
|
||||
|
||||
((section_header
|
||||
(section_name) @_name
|
||||
(subsection_name) @string.special.url)
|
||||
(#any-of? @_name "credential" "url"))
|
||||
|
||||
((variable
|
||||
(name) @_name
|
||||
value: (string) @string.special.url)
|
||||
(#eq? @_name "insteadOf"))
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
Loading…
Add table
Add a link
Reference in a new issue