mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
feat(queries): modeline mechanism for base langs
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
This commit is contained in:
parent
9ad47c65bd
commit
c055899dc0
17 changed files with 73 additions and 32 deletions
|
|
@ -1,3 +1,5 @@
|
|||
; inherits: c
|
||||
|
||||
[
|
||||
(for_range_loop)
|
||||
(class_specifier)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
; inherits: c
|
||||
|
||||
((identifier) @field
|
||||
(#match? @field "^_"))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
; inherits: c
|
||||
|
||||
;; Parameters
|
||||
(variadic_parameter_declaration
|
||||
declarator: (variadic_declarator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue