Stephan Seitz
fb20cf868b
Update teal highlights
2021-09-17 21:06:36 +02:00
Connor Lay (Clay)
363ac62e23
Feature: Add Surface language and integrate with Elixir ( #1645 )
...
* Add initial surface highlights & injections
* Additional surface highlights
* Filetype detection, fix injections
* Fix Elixir function highlight when left is an identifier
* Add surface parser
* Fix comment highlights
* Surface folds, indents, better highlights
* Highlight surface components & directives
* Restore comments Elixir injections
2021-09-17 21:06:36 +02:00
leo60228
dfb5628a74
Indent C compound_literal_expression
2021-09-17 21:06:36 +02:00
Pierre Poupin
6875f4bd9d
feature: add godotResource queries
2021-09-17 21:06:36 +02:00
Stephan Seitz
95a3e81630
highlights(clojure): fix highlighting of #_
...
Fix https://github.com/sogaiu/tree-sitter-clojure/issues/14
2021-09-17 21:06:36 +02:00
Tomas Sandven
b1ce959946
Update YANG parser revision and highlights query
2021-09-17 21:06:36 +02:00
Mark Ellis
51fd70749b
added very basic HCL indentation support
2021-09-17 21:06:36 +02:00
Hennadii Chernyshchyk
808f0d9ce1
Remove regex for field
2021-09-17 21:06:36 +02:00
Stephan Seitz
3f5d554f68
injections(cuda): add injections.scm
2021-09-17 21:06:36 +02:00
Stephan Seitz
af63aa17d4
highlights(cuda): add support for __launch_bounds__
2021-09-17 21:06:36 +02:00
David Hotham
7d5becca27
YANG fold on blocks
2021-09-17 21:06:36 +02:00
Oliver Marshall
d569c542cd
Don't capture quotes as comments
2021-09-17 21:06:36 +02:00
Oliver Marshall
4d61d5f114
Remove last @a
2021-09-17 21:06:36 +02:00
Oliver Marshall
c810888952
Remove docstring highlights
2021-09-17 21:06:36 +02:00
Oliver Marshall
f7aebc15a1
Use ignored capture groups
2021-09-17 21:06:36 +02:00
Oliver Marshall
cc8e5caaba
Improve some comments
2021-09-17 21:06:36 +02:00
Oliver Marshall
f68cf9e793
Improve highlights for types
2021-09-17 21:06:36 +02:00
Oliver Marshall
d562ffcab9
Remove constant highlighting
2021-09-17 21:06:36 +02:00
Oliver Marshall
6641eee7a7
Add forgotten annon function highlight
2021-09-17 21:06:36 +02:00
Oliver Marshall
c9209f8a2c
Add header comment
2021-09-17 21:06:36 +02:00
Oliver Marshall
d6aae5a7d2
Add some todos
2021-09-17 21:06:36 +02:00
Oliver Marshall
36964190f2
Add context based highlighting for def, defn & ns
2021-09-17 21:06:36 +02:00
Oliver Marshall
16a06b30c2
Revamp the symbol highlighting
2021-09-17 21:06:36 +02:00
Oliver Marshall
b8b0da006b
Move meta punctuation
2021-09-17 21:06:36 +02:00
Oliver Marshall
0cf75fd96d
Simplify
2021-09-17 21:06:36 +02:00
Oliver Marshall
99185fcf7d
Add some comments & TODOs
2021-09-17 21:06:36 +02:00
Oliver Marshall
5b5b55f8ed
First pass at def-likes
2021-09-17 21:06:36 +02:00
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