mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fix(highlights): improve consistency
This commit is contained in:
parent
4cd951d703
commit
2f38c36294
22 changed files with 62 additions and 76 deletions
|
|
@ -237,21 +237,3 @@
|
|||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Only highlight format specifiers in calls to string.format
|
||||
; string.format('...')
|
||||
;(function_call
|
||||
; called_object: (index
|
||||
; (identifier) @base
|
||||
; key: (identifier) @entry)
|
||||
; arguments: (arguments .
|
||||
; (string (format_specifier) @string.escape))
|
||||
;
|
||||
; (#eq? @base "string")
|
||||
; (#eq? @entry "format"))
|
||||
; ('...'):format()
|
||||
;(function_call
|
||||
; called_object: (method_index
|
||||
; (string (format_specifier) @string.escape)
|
||||
; key: (identifier) @func-name)
|
||||
; (#eq? @func-name "format"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue