Stephan Seitz
c4a6d93408
highlights(cuda): add support for __launch_bounds__
2021-07-20 08:32:34 +02:00
David Hotham
368a016c15
YANG fold on blocks
2021-07-19 20:22:00 +00:00
Oliver Marshall
17cf76de8a
Don't capture quotes as comments
2021-07-19 16:24:01 +00:00
Oliver Marshall
036e88b94a
Remove last @a
2021-07-19 16:24:01 +00:00
Oliver Marshall
e0ecd61046
Remove docstring highlights
2021-07-19 16:24:01 +00:00
Oliver Marshall
2bba92dfb0
Use ignored capture groups
2021-07-19 16:24:01 +00:00
Oliver Marshall
de5641a246
Improve some comments
2021-07-19 16:24:01 +00:00
Oliver Marshall
39d0b9b61b
Improve highlights for types
2021-07-19 16:24:01 +00:00
Oliver Marshall
dd75916ef9
Remove constant highlighting
2021-07-19 16:24:01 +00:00
Oliver Marshall
9d1fe26b4d
Add forgotten annon function highlight
2021-07-19 16:24:01 +00:00
Oliver Marshall
89a3dffd8d
Add header comment
2021-07-19 16:24:01 +00:00
Oliver Marshall
78190687be
Add some todos
2021-07-19 16:24:01 +00:00
Oliver Marshall
2403f3a8de
Add context based highlighting for def, defn & ns
2021-07-19 16:24:01 +00:00
Oliver Marshall
1099809d70
Revamp the symbol highlighting
2021-07-19 16:24:01 +00:00
Oliver Marshall
54e4a59fa7
Move meta punctuation
2021-07-19 16:24:01 +00:00
Oliver Marshall
e5ba6de3a3
Simplify
2021-07-19 16:24:01 +00:00
Oliver Marshall
4390cbffd5
Add some comments & TODOs
2021-07-19 16:24:01 +00:00
Oliver Marshall
336206e380
First pass at def-likes
2021-07-19 16:24:01 +00:00
Oliver Marshall
91e0fc6719
Match % variables
2021-07-19 16:24:01 +00:00
Oliver Marshall
8219dbbdbe
Add more operators
2021-07-19 16:24:01 +00:00
Oliver Marshall
a9863864a8
Add some TODOs
2021-07-19 16:24:01 +00:00
Oliver Marshall
e26009b7f4
Highlight splicing operators
2021-07-19 16:24:01 +00:00
Oliver Marshall
2c67ca51a5
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-07-19 16:24:01 +00:00
Oliver Marshall
5885256549
Reorganise slightly
2021-07-19 16:24:01 +00:00
Tomas Sandven
a6121f014d
Add YANG parser
2021-07-19 16:03:27 +00: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