Commit graph

741 commits

Author SHA1 Message Date
Pierre Poupin
670275de30 feature: add godotResource queries 2021-07-29 07:34:15 +02:00
Stephan Seitz
9e147d2356 highlights(clojure): fix highlighting of #_
Fix https://github.com/sogaiu/tree-sitter-clojure/issues/14
2021-07-25 18:06:50 +02:00
Tomas Sandven
65a059b34d Update YANG parser revision and highlights query 2021-07-23 17:56:45 +02:00
Mark Ellis
3a9aa6fe88 added very basic HCL indentation support 2021-07-22 19:48:07 +02:00
Hennadii Chernyshchyk
380b49e326 Remove regex for field 2021-07-22 00:03:48 +02:00
Stephan Seitz
182efd525c injections(cuda): add injections.scm 2021-07-20 08:32:58 +02:00
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