mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 21:00:08 -04:00
fixes from lintquery
This commit is contained in:
parent
dc6ee3b498
commit
a9afdbfbdb
3 changed files with 5 additions and 6 deletions
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
(condition_expression
|
||||
(binary_condition_expression
|
||||
(binary_condition_identifier) @kw_name
|
||||
(binary_condition_identifier) @keyword
|
||||
(identifier) @number)
|
||||
(#eq? @kw_name "number"))
|
||||
(#eq? @keyword "number"))
|
||||
|
||||
(ask) @function.builtin
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
; These are all interpreted as regex when evaluated
|
||||
; https://github.com/ranger/ranger/blob/38bb8901004b75a407ffee4b9e176bc0a436cb15/ranger/ext/rifle.py#L273-L282
|
||||
(binary_condition_expression
|
||||
(binary_condition_identifier) @rc_keyword
|
||||
(binary_condition_identifier) @_keyword
|
||||
(identifier) @injection.content
|
||||
(#any-of? @rc_keyword "match" "ext" "mime" "name" "path" "has" "env" "label")
|
||||
(#any-of? @_keyword "match" "ext" "mime" "name" "path" "has" "env" "label")
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
|
||||
; highlight any commands using the bash tree-sitter parser
|
||||
(command_list
|
||||
(command) @injection.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue