Amaan Qureshi
d7cef15b01
feat(ecma): add tests for constants
2023-03-04 05:00:39 -05:00
Amaan Qureshi
5c511dd124
feat(solidity): use maintained parser and update highlights accordingly
2023-02-24 13:05:33 -08:00
Kiyoon Kim
7eb5f1a2e3
properly replace deprecated tsutils functions
2023-02-12 14:26:14 -08:00
lucario387
85d9534491
allow negative assertion in injection tests ( #4107 )
...
* tests(vue, svelte): strengthen tests
* fix(html, vue, svelte): fix wrong test format
* allow negative assertions in injection tests
2023-01-07 11:22:20 +01:00
Lucario387
28baed7698
refactor(svelte): Remove duplicated queries
...
These injection queries are defined already in html_tags, remove them
Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-01-03 12:05:10 +01:00
Lucario387
6f4b9b190b
refactor(vue, html): Update injections
...
Update html_tags injections so that html/vue/svelte parsers can use
it without having a script/style tag being captured twice
Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-01-03 12:05:10 +01:00
Stephan Seitz
6a31d9086e
highlights(rust): use @namespace for [(crate) (self) (super)]
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
2023-01-01 15:32:07 +01:00
Stephan Seitz
ab414f8b1c
ci: allow negative assertions in tests
2023-01-01 15:32:07 +01:00
Pedro Castro
6d2b0bd381
move 'in' to repeat
2022-12-31 13:50:47 +01:00
Pedro Castro
ec3d4af104
fix test
2022-12-31 13:50:47 +01:00
Pedro Castro
58c0d78de8
r: update highlights
2022-12-31 13:50:47 +01:00
Lucario387
f5d517f4a7
Fix(vue): Invalid match queries
2022-12-25 17:43:25 +01:00
Lucario387
bbd7ecb25d
add test file
2022-12-25 14:58:33 +01:00
xasc
2d48cbc831
feat(t32): initial support
2022-12-21 23:57:06 +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
Aaron Rancsik
2568022580
test(highlights/cpp): add new test for auto as type.builtin.
2022-12-01 15:08:07 +01:00
Aaron Rancsik
45bb230dc0
test(highlights/cpp): type -> type.builtin for primitive types.
2022-12-01 15:08:07 +01:00
ObserverOfTime
6725bef5ce
highlights(hack): fix captures
2022-11-26 13:17:51 +02:00
ObserverOfTime
08bd9d0e08
highlights(solidity): use more specific groups
2022-11-26 13:17:51 +02:00
ObserverOfTime
353538d570
highlights(tiger): fix captures
2022-11-26 13:17:51 +02:00
ObserverOfTime
276627849b
highlights(gleam): use more specific groups
2022-11-26 13:17:51 +02:00
ObserverOfTime
79705a1f80
highlights(cpp): use more specific groups
2022-11-26 13:17:51 +02:00
ObserverOfTime
54ca5ae2f0
highlights(gitattributes): fix captures
2022-11-26 13:17:51 +02:00
Raymond Ha
ef24c633f6
highlights(typescript): Fix as highlight
2022-11-25 00:34:25 +01:00
Munif Tanjim
63d7e456ea
highlights(ecma): add pair_pattern punctuation.delimiter
2022-10-17 14:37:36 -07:00
Christian Clason
42ab95d5e1
feat!: remove obsolete TS* highlight groups
2022-10-16 15:50:55 +02:00
ObserverOfTime
0bfeb5484e
test(gitattributes): add tests for highlights
2022-10-15 08:44:41 -07:00
Stephan Seitz
53742779e3
highlights(rust): distinguish between "for" in loops and impl_item
...
Fixes #3641
2022-10-15 04:02:20 -07:00
Christian Clason
8e763332b7
fix(test): update tests to Nvim 0.8
2022-10-02 09:29:34 -04:00
Stephan Seitz
d11d35fb61
highlights(hack): use @function.call/@method.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
f66a911a95
highlights(ecma): use @method.call/function.call
2022-09-11 04:16:06 -07:00
lfenzo
64f3f7415d
(Broken test fixed) Updated static-namespace-functins.cpp to use function.call
2022-08-03 12:05:30 -07:00
Duncan McDougall
901ffe1a36
Add support for custom parser install locations #2959 ( #3031 )
2022-06-20 22:50:07 +02:00
Bruno BELANYI
fcba0368a6
fix(tiger): add 'ft' modeline in highlight corpus
2022-06-14 22:34:03 +02:00
Bruno BELANYI
b8e3b03748
fix(tiger): adjust invalid queries
2022-06-14 22:34:03 +02:00
Bruno BELANYI
6e3f888dc7
test(tiger): import upstream tests
2022-06-14 22:34:03 +02:00
Santos Gallegos
f1373051e5
Python: highlight future import ( #2936 )
...
* Python: highlight future import
* Use constant.builtin
2022-05-13 21:46:06 +00:00
Stephan Seitz
a4f9539a0c
highlights(cpp): make "::" @punctuation.delimiter
...
Fixes #2902
2022-05-07 13:30:36 +02:00
Santos Gallegos
132405f18f
Python: highlight raise from statement
2022-05-01 10:06:13 +02:00
Stephan Seitz
b8d1c2445a
highlights(python): "from" in yield should be @keyword.return
...
Fixes #2712
2022-04-01 17:00:21 +02:00
YongJieYongJie
fc0b881f93
Refactor solidity highlights.scm further
...
- Instead of @keyword, use @conditional, @exception, @return, @function
as appropriate
- Standardize to using @field (instead of @property)for struct members
2022-03-11 19:06:39 +01:00
YongJieYongJie
8f3991065d
Refactor solidity highlights.scm
...
- Use more specific/appropriate captures; change invalid captures
- Don't highlight punctuations in type names (e.g., the brackets in
'bytes32[]')
2022-03-11 19:06:39 +01:00
YongJieYongJie
a180859eea
Add highlights query for Solidity
2022-03-11 19:06:39 +01:00
Connor Lay (Clay)
00dce44780
Gleam highlight tests
2022-02-15 19:01:02 +01:00
Stephan Seitz
3f876efce5
tests: use main parsers instead of nvim-treesitter parser for tests
2022-01-29 13:11:56 +01:00
Stephan Seitz
e4675bc410
highlights(c/cpp): highlight case labels as constants
2022-01-29 13:11:56 +01:00
Stephan Seitz
974e2181a0
highlights(cpp): fix function highlighting of Foo::bar::baz()
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
2022-01-29 12:40:35 +01:00
Stephan Seitz
c4e3564ea3
highlights(python): add support for pattern matching
...
Fixes #2080
Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140
2022-01-28 19:11:20 +01:00
Stephan Seitz
668de0951a
chore: remove swift tests for now (cause CI failure)
...
Will try to add them again in a follow up.
2022-01-18 22:09:21 +01:00
Stephan Seitz
cc1890528f
highlights(swift): add more @operators and implicit keyword
2022-01-18 22:09:21 +01:00