Commit graph

24 commits

Author SHA1 Message Date
Munif Tanjim
63d7e456ea highlights(ecma): add pair_pattern punctuation.delimiter 2022-10-17 14:37:36 -07:00
ObserverOfTime
9b43ab819c highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
Lewis Russell
37398c7d68 feat(spell): support more languages 2022-09-26 13:47:12 +01:00
Stephan Seitz
f66a911a95 highlights(ecma): use @method.call/function.call 2022-09-11 04:16:06 -07:00
Sergio Alejandro Vargas
fb6d60c7b9 highlights(ecma): Update queries for literals
- Add queries for value properties:
    - undefined
    - NaN
    - Infinity
- Highlight regex delimiters as brackets instead of punctuation
- Format queries for literals
2022-08-22 15:51:08 -07:00
GitHub
9dd1065ebe highlights(javascript): "?." -> optional_chain 2022-08-20 10:42:19 +02:00
Stephan Seitz
1bbc761acc highlights(ecma): highlight escape_sequence 2021-12-12 02:43:08 +01:00
numToStr
801c7f0b48 ecma: highlight private properties and methods 2021-11-25 15:42:24 +01:00
Lewis Russell
011ac894ec Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
kiyan
3b533422df fix: remove priority in ecma template substitution hl
This PR removes the priority override for the interpolation because it
overrides every ecma based template literal, setting none with a higher
priority than ecma groups which made every template string look
`un`highlighted.
2021-10-03 11:01:30 +02:00
Santos Gallegos
8b7f70d366 Ecma: increase priority of template_substitution
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1688
2021-09-17 22:08:12 +02:00
delphinus
331b47d246 Use the color of variable 2021-09-09 23:00:05 +02:00
delphinus
398ec42d30 Set property color for destructuring assignment 2021-09-09 23:00:05 +02:00
delphinus
2156a55efa Enable to highlight shebang on JS/TS 2021-08-12 08:47:22 +02:00
antonk52
55e36f4011 place template string after braces 2021-07-07 00:15:21 +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
antonk52
68bf36c917 highlights(ecma): use KeywordFunction as a highlight group for function 2021-05-17 19:22:00 +02: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
kraftwerk28
09045354c0 Add generator functions to ecma queries 2021-03-23 23:37:11 +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