mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix #307: Use and document TSVariable/TSVariableBuiltin in all languages
This commit is contained in:
parent
50991e370b
commit
bcf421b4e7
10 changed files with 39 additions and 8 deletions
|
|
@ -1,7 +1,10 @@
|
|||
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
||||
|
||||
; Methods
|
||||
; Variables
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
; Methods
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @method)
|
||||
|
|
@ -105,7 +108,7 @@
|
|||
((identifier) @constant
|
||||
(#vim-match? @constant "^_*[A-Z][A-Z\d_]+"))
|
||||
|
||||
(this) @constant.builtin
|
||||
(this) @variable.builtin
|
||||
|
||||
; Literals
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue