Mark Skelton
a0b815497b
feat: add tree-sitter-styled ( #5735 )
...
* Add styled parser
* Add queries
* Update highlights
* Remove unnecessary highlights
* Update injections to use the styled grammar
* Remove requires npm
2023-12-19 21:53:00 +09:00
Amaan Qureshi
c543ffae1c
fix(ecma): prioritize builtins
2023-11-10 19:08:12 -05:00
Tobias S
8e9cc89955
fix(ecma_injections): limit function names to alphanumeric characters only
2023-08-31 22:41:07 +09:00
Pham Huy Hoang
294f753ed3
fix(ecma): fix no injections for innerHTML ( #5258 )
2023-08-16 16:58:25 +09:00
Pham Huy Hoang
78b54eb7f6
chore(injections)!: update injection syntax to 0.9
...
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter
- update health check
- update doc
2023-08-12 17:34:15 +02:00
ShellCode33
d9e75a1736
queries/*/highlights.scm : remove @spell for strings
2023-08-07 16:39:40 +01:00
Ananda Umamil
44211e7f6e
feat(typescript): highlight decorators, default case, global declaration
2023-07-17 14:19:28 -04:00
Sergio A. Vargas
90581acf87
feat(ecma): highlight regex flags
2023-07-10 14:13:17 -04:00
ObserverOfTime
ec7db4ba3f
feat(pug): improve syntax highlighting
2023-07-07 16:14:01 -04:00
Amaan Qureshi
2c59e0ff3d
refactor(ecma): triple dot should be an operator
2023-06-09 01:58:28 +09:00
Ananda Umamil
bee003b880
feat(ecma): convert eligible @keyword.operators
2023-06-04 00:04:40 -04:00
Ananda Umamil
a02a06a068
highlights(typescript): : in switch statement
2023-05-18 21:34:42 -04:00
Amaan Qureshi
85330918f0
perf: remove match where possible
2023-04-21 18:24:17 -04:00
Amaan Qureshi
7ade4d2e77
fix(ecma): comment should be @indent.auto ( #4669 )
2023-04-18 08:04:04 +09:00
Amaan Qureshi
da7f886ab5
perf(ecma): remove GraphQL comment injection, use lua-match for gql template detection
2023-04-15 20:13:44 -04:00
ObserverOfTime
18f9e1a47f
javascript: highlight more builtins
...
Co-Authored-By: Sergey Berezhnoy <veged@ya.ru>
2023-04-12 13:46:06 -04:00
Amaan Qureshi
0a20d1bb63
feat(ecma): use lua-match for jsdoc injections
2023-04-03 11:13:04 -04:00
George Harker
cb568af539
use indent.X syntax for captures and properties of set directives
...
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
2023-03-24 13:07:53 -04:00
Benny Powers
38f878a1cd
fix: svg injection in ecma tagged literals
2023-03-19 08:20:16 -04:00
Benny Powers
f15db0b652
style: alternation in template literal query
2023-03-19 08:20:16 -04:00
Benny Powers
1ba94e9f01
fix(ecma): template literal injections
...
see e3ebc8ec5d (commitcomment-104824257) for explanation
This also assigns the HTML parser for SVG tagged literals, since svg uses the HTML parser
2023-03-19 08:20:16 -04:00
Peter Lamby
e3ebc8ec5d
fix(ecma): inject properly based on "call_expression"
...
Also add a comment what the query does.
2023-03-12 16:27:40 +00:00
Amaan Qureshi
964dc882e9
Partially Revert "fix(ecma): properly capture constants in const declarations"
...
This partially reverts commit c553e6c560 .
2023-03-10 02:38:36 -05:00
Amaan Qureshi
5a87bc98da
feat: add @comment.documentation where applicable
2023-03-05 17:15:32 -05:00
Amaan Qureshi
c553e6c560
fix(ecma): properly capture constants in const declarations
2023-03-04 05:00:39 -05:00
Amaan Qureshi
33ba346e60
feat!: add @keyword.coroutine capture
2023-03-03 07:07:52 -08:00
Benny Powers
8d2f9903f1
feat(ecma): include outerHTML and innerHTML
2023-02-25 11:17:13 -05:00
Benny Powers
248a87ef65
feat(ecma): add innerHTML injection
2023-02-25 11:17:13 -05:00
ObserverOfTime
0e6d4b4172
highlights(ecma): limit constructor highlight
2023-02-03 14:32:28 -08:00
Pham Huy Hoang
2cd89b4bc3
fix(jsx): add missing indent end mark to elements
2023-01-04 12:14:03 +01:00
Raymond Ha
6c4772f7b6
indents(ecma): Fix switch default indent
2022-12-07 18:05:33 +01:00
Stephan Seitz
d6a2ecb8b7
highlights: create subscoping for ternary operator
...
After https://github.com/nvim-treesitter/nvim-treesitter/issues/470 ,
we decided to use `@conditional` for ternary operator instead of
operator despite `@conditional` is documented for keywords only.
A sub-scoping can make it easier for people to highlight this operator
group differently.
Also unify the usage of `@conditional...` across languages.
2022-12-02 21:42:11 +01:00
ObserverOfTime
fa4b9941e6
highlights(ecma): fix captures
...
Co-Authored-By: Stephan Seitz <stephan.seitz@fau.de>
2022-11-26 13:17:51 +02:00
Raymond Ha
faf78ce12a
Narrow as @include query
2022-11-25 00:34:25 +01:00
Trard
cc2268e1c7
highlights(ecma): distinguish between "default" in export and switch statements
2022-11-24 21:55:50 +01:00
Trard
bbe90e9318
removed switch from keywords
2022-11-21 10:23:28 +01:00
NullVoxPopuli
c945b34179
Update ecma injections to support recent additions to tree-sitter-javascript/typescript
2022-10-24 14:27:14 -07:00
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
Nick Friday
ba752cee13
fix(ecma injections): jsdoc match /** */ only
2022-09-15 15:41:18 -07:00
Stephan Seitz
f66a911a95
highlights(ecma): use @method.call/function.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
00b4ef5759
indents(ecma): make "]" @indent_end
...
Fixes #3382
2022-09-10 12:59:21 -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
Kiyan
6f3fbb2622
fix(ecma): indent end for bracket ( #3121 )
2022-07-07 14:35:12 +02:00
Jackson Ludwig
b39840302c
injections(ecma): add injection for commented graphql template strings ( #2987 )
2022-06-05 11:50:48 +02:00
William Mathewson
57f4dbd47b
Use @definition.function for method & func definitions
2022-05-14 20:35:09 +02:00
William Mathewson
81dd6c988c
Add method to definitions in ECMA locals
...
In Telescope, function declarations were being exposed in the selector,
but not method definitions which are also a form of function
declaration.
2022-05-14 20:35:09 +02:00
Stephan Seitz
bda4b35f76
indents(ecma): use auto indent on (ERROR)
...
Fixes #2515
2022-04-04 09:03:30 +02:00