mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fixes to bash highlighting
This commit is contained in:
parent
ac42192e19
commit
026314f2a9
1 changed files with 7 additions and 7 deletions
|
|
@ -70,13 +70,13 @@
|
||||||
(special_variable_name) @constant
|
(special_variable_name) @constant
|
||||||
|
|
||||||
((word) @constant.builtin
|
((word) @constant.builtin
|
||||||
(#vim-match? @constant.builtin "SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)"))
|
(#match? @constant.builtin "^SIG(INT|TERM|QUIT|TIN|TOU|STP|HUP)$"))
|
||||||
|
|
||||||
((word) @boolean
|
((word) @boolean
|
||||||
(#vim-match? @boolean "true|false"))
|
(#match? @boolean "^(true|false)$"))
|
||||||
|
|
||||||
((word) @number
|
((word) @number
|
||||||
(#vim-match? @number "^\d*$"))
|
(#match? @number "^[0-9]+$"))
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(test_operator) @string
|
(test_operator) @string
|
||||||
|
|
@ -96,11 +96,13 @@
|
||||||
(command
|
(command
|
||||||
argument: [
|
argument: [
|
||||||
(word) @parameter
|
(word) @parameter
|
||||||
((word) @number
|
|
||||||
(#vim-match? @number "^\d*$"))
|
|
||||||
(concatenation (word) @parameter)
|
(concatenation (word) @parameter)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
(command
|
||||||
|
argument: ((word) @number
|
||||||
|
(#match? @number "^[0-9]+$")))
|
||||||
|
|
||||||
(file_redirect
|
(file_redirect
|
||||||
descriptor: (file_descriptor) @operator
|
descriptor: (file_descriptor) @operator
|
||||||
destination: (word) @parameter)
|
destination: (word) @parameter)
|
||||||
|
|
@ -115,5 +117,3 @@
|
||||||
|
|
||||||
(case_item
|
(case_item
|
||||||
value: (word) @parameter)
|
value: (word) @parameter)
|
||||||
|
|
||||||
(concatenation (word) @parameter)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue