mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
Add PHP, TOML, and update HTML, javascript queries
- PHP : Add highlights and locals query - TOML : Add highlights and locals query - HTML : Add scope - javascript : Add some scopes
This commit is contained in:
parent
a0abaf936c
commit
f372e2ab87
7 changed files with 233 additions and 2 deletions
12
queries/toml/highlights.scm
Normal file
12
queries/toml/highlights.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(bare_key) @type.builtin
|
||||
|
||||
(pair
|
||||
(bare_key) @property)
|
||||
|
||||
(string) @string
|
||||
(boolean) @constant.builtin
|
||||
(integer) @number
|
||||
(float) @float
|
||||
(comment) @comment
|
||||
|
||||
(ERROR) @error
|
||||
2
queries/toml/locals.scm
Normal file
2
queries/toml/locals.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(table) @scope
|
||||
(table_array_element) @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue