delphinus
2c49c9af64
Enable to highlight shebang on JS/TS
2021-09-17 21:06:36 +02:00
antonk52
55e36f4011
place template string after braces
2021-07-07 00:15:21 +02:00
Samyak S Sarnayak
9799a80c55
fix(ecma): add indents to switch and cases
...
fixes nvim-treesitter#1384
2021-07-06 09:39:56 +02:00
antonk52
90f15d9bf7
feat(keywords) merge return and yield into keyword.return group
2021-07-04 21:49:17 +02:00
antonk52
bd9095e969
feat(keywords) add keyword.return & keyword.yield
2021-07-04 21:49:17 +02:00
Steven Sojka
eb6fdb5085
chore(injections): remove duplicated regex injection for js
2021-06-11 16:15:14 +02:00
antonk52
68bf36c917
highlights(ecma): use KeywordFunction as a highlight group for function
2021-05-17 19:22:00 +02:00
Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Stephan Seitz
788d212ab3
locals(js,ts): Add parameters again ( #1231 )
2021-04-28 07:39:14 -05:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* Comment: use `@combined` to create just one tree per buffer
There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251
* Add injections for scss
* Fix jsonc
* Combine jsdoc
2021-04-28 07:19:07 -05:00
Stephan Seitz
082d2ef6e1
Add JS/TS parameters again ( #1227 )
...
* highlights(js): add parameters
* highlights(ts): add Typescript parameters
2021-04-23 07:20:51 -05:00
Thomas Vigouroux
9cfd3377e3
fix(highlights): always highlight ternary operator as operator
2021-04-22 17:50:56 +02:00
Stephan Seitz
099b921542
injections(js): add regex highlighting
2021-04-06 21:27:47 +02:00
Santos Gallegos
0df7c4aa39
Fix jsdoc: play nice with the comment parser ( #1108 )
...
Using separate queries makes it work as expected.
Also, for the comment parser to be able to override the other tokens
we need to remove the comment from highlights (this shouldn't be a
problem since that section is already highlighted as a comment).
And, the order of the captures matter,
having jsdoc first will have more priority over `@param`.
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1069
2021-03-27 10:51:16 -05:00
kraftwerk28
09045354c0
Add generator functions to ecma queries
2021-03-23 23:37:11 +01:00
Hanh Le
5f97c41c54
Update injections.scm
2021-03-18 18:37:04 +01:00
Stephan Seitz
6cd211f647
Mark several invalid queries
2021-03-16 18:52:43 +01:00
Rohit Pradhan
0bab8e56b2
Ecma: Highlight single-argument callback parameter
2021-03-15 19:02:39 +01:00
kiyan
3b8c2ea492
chore: create ecma base for use in js and ts which fixes jsx issues
2021-03-10 17:34:11 +01:00