Oliver Marshall
da360bfd04
Match % variables
2021-09-17 21:06:36 +02:00
Oliver Marshall
7882600caa
Add more operators
2021-09-17 21:06:36 +02:00
Oliver Marshall
31c54c5048
Add some TODOs
2021-09-17 21:06:36 +02:00
Oliver Marshall
19b6a84089
Highlight splicing operators
2021-09-17 21:06:36 +02:00
Oliver Marshall
171082600e
All the other stuff, includes:
...
- Changing huge 'match's to 'any-of's
- Roughly organising the queries into sections
- Add some TODOs for more improvements
- Comment out def-like and call queries as they overlap too much
- Change the captures to use better (imo) groups
- Make with-.* and when-.* always highlight like a builtin
2021-09-17 21:06:36 +02:00
Oliver Marshall
688ec2f6a0
Reorganise slightly
2021-09-17 21:06:36 +02:00
Tomas Sandven
f6c6d0d947
Add YANG parser
2021-09-17 21:06:36 +02:00
Gregory Anders
27f5e99cdd
c: don't treat uppercase functions as constants
...
A macro function such as
#define FOO(x) ...
should be highlighted with @function.macro, even though the name is in
all-caps (which would otherwise be treated as a constant). Similarly,
call sites of such functions, e.g.
int y = FOO(x);
should be highlighted with @function instead of @constant.
This is as simple as moving the query definition for macro functions
after the query definition for constants.
2021-07-18 16:44:40 +00:00
Łukasz Niemier
21a7f61b06
fix(elixir): add missing possible parameters
2021-07-18 16:44:35 +00:00
agarof
419153c1f1
folds(rust): Fold trait definitions ( #1582 )
2021-07-18 15:59:58 +00:00
Stephan Seitz
d779ee79f0
folds(cpp): highlight scoped enums
2021-07-14 23:00:14 +02:00
Stephan Seitz
6b31df7852
c(folds): fold on enums
2021-07-14 23:00:14 +02:00
lmlorca
fb5d6e04a8
add @tag.attribute for html like attributes
2021-07-14 10:13:13 +02:00
Santos Gallegos
2a0097828d
Query: update highlight queries ( #1553 )
...
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
2021-07-13 14:09:12 +00:00
Santos Gallegos
647268183f
Highlights: define string.special ( #1551 )
...
* Highlights: define string.special
This was in our CONTRIBUTING.md file,
but wasn't defined.
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405
* Use string.escape
2021-07-11 15:59:53 -05:00
Santos Gallegos
948fa6a260
Python: fix class highlights ( #1548 )
2021-07-11 15:06:52 -05:00
Munif Tanjim
f29ead00e6
highlights(jsx): fix constant identifier ( #1434 )
2021-07-10 19:56:10 -05:00
Mitchell Hanberg
f6cd2d0b2f
[elixir] Add folds ( #1543 )
2021-07-09 18:51:16 +00:00
Sergio Alejandro Vargas
a2b9b9bd9d
highlights(rust): Reorder macro queries
...
Derive macros have to be defined before attribute macros to highlight
them properly.
See #570
2021-07-08 23:37:38 +02:00
Stephan Seitz
6d18b93ce7
highlights(zig): highlight true,false
2021-07-08 23:37:00 +02:00
Cédric Barreteau
2e0baf40ad
Update ledger highlights
...
Add `check` keyword.
2021-07-07 23:18:45 +02:00
Santos Gallegos
989fc7aa6c
Lua: highlight function definitions
...
In lua
```lua
function foo() end
```
is syntax sugar for
```lua
foo = function() end
```
2021-07-07 23:17:43 +02:00
Sergio Alejandro Vargas
f3fab7498f
Add exception handling branches
2021-07-07 21:37:18 +02:00
Sergio Alejandro Vargas
a890c81a6b
Update Julia fold queries
2021-07-07 21:37:18 +02:00
Sergio Alejandro Vargas
6ec7516d3d
Add Julia indent queries
2021-07-07 21:37:18 +02:00
antonk52
55e36f4011
place template string after braces
2021-07-07 00:15:21 +02:00
Uy Ha
2815b6a033
[cmake] Add support for generator expression
2021-07-06 20:13:28 +02:00
Stephan Seitz
f280847b78
highlights(cuda): add support for __restrict__
2021-07-06 19:38:58 +02:00
Stephan Seitz
dff252d32a
highlights(cpp): add static_assert
2021-07-06 18:48:08 +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
Sergio Alejandro Vargas
820b4a9c21
Use @keyword.function consistently
2021-07-06 00:53:40 +02:00
Sergio Alejandro Vargas
017760113a
Highlights(python): Add @keyword.function
...
Use `@keyword.function` for `def` and `lambda`
2021-07-06 00:53:40 +02:00
Stephan Seitz
70f739c337
highlights(zig): highlight unreachable
2021-07-05 12:37: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
Omar Zeghouani
859c743296
locals: add more scopes
2021-07-04 21:48:20 +02:00
Stephan Seitz
45cb7ef290
highlights(zig): use @string.escape for escape sequences
2021-07-04 21:17:48 +02:00
Wilman Barrios
486c86f1cd
Add support for match expression in PHP ( #1482 )
2021-07-04 12:52:29 -05:00
David Hotham
9bcf658ca4
fold HCL objects ( #1479 )
2021-07-03 16:00:20 -05:00
oponkork
4eb19c9e6d
feat(fortran): moved procedure to @keyword.function
2021-07-02 22:52:28 +02:00
oponkork
af9dfe99ef
feat(fortran): Improved and sorted highlight queries
2021-07-02 22:52:28 +02:00
mhoffm
8eb29ef93e
highlight template interpolation enclosures as punctuation.bracket; cleanup
2021-07-02 19:48:19 +02:00
mhoffm
e607de4e1e
update lockfile to point to v0.4.0; update highlight queries
2021-07-02 19:48:19 +02:00
Gregory Anders
c71edcd781
fish: only highlight 'test' keyword instead of entire condition ( #1464 )
2021-07-02 09:52:24 +00:00
Uy Ha
fbbfa3bda0
Move macro to @function.macro capture
2021-07-02 08:37:02 +02:00
Uy Ha
a8a7200241
Change captures:
...
- Disable highlight for `variable_ref`
- Capture `ENV` and `CACHE` as `@symbol`
- Capture '$', '{', '}', '(', ')' as punctuation
2021-07-02 08:37:02 +02:00
Uy Ha
c214c7c563
Remove query for specific keywords for now
2021-07-02 08:37:02 +02:00
Uy Ha
e121e52b2d
Add comment parsing and highlight whole bracket argument
2021-07-02 08:37:02 +02:00
Uy Ha
6a2ce27949
Fix wrong name:
...
- `fold.scm` -> `folds.scm`
2021-07-02 08:37:02 +02:00
Uy Ha
b090c94a7a
Capture variable_ref instead of variable for @variable
2021-07-02 08:37:02 +02:00