mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
Lua: update some queries
- Basic textobjects - Highlighting punctuation symbols
This commit is contained in:
parent
6f9e5bf23f
commit
b8e3a2dc65
2 changed files with 12 additions and 0 deletions
|
|
@ -59,6 +59,15 @@
|
|||
"#"
|
||||
] @operator
|
||||
|
||||
;; Brackets
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
;; Constants
|
||||
[
|
||||
|
|
|
|||
3
queries/lua/textobjects.scm
Normal file
3
queries/lua/textobjects.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(function) @function.outer
|
||||
|
||||
(local_function) @function.outer
|
||||
Loading…
Add table
Add a link
Reference in a new issue