Commit graph

1545 commits

Author SHA1 Message Date
Andrew He
c8b32028bc Folds: remove ending marks for folds; they only confuse vim when multiple closes on the same line are expected 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
Santos Gallegos
9be9ebda0a Re-attach module when the file type is changed
Requires https://github.com/neovim/neovim/pull/14995
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1249
2021-07-18 16:44:25 +00:00
Thomas Vigouroux
74d1d58572 ci(mergify): don't use queues 2021-07-18 18:43:45 +02:00
Thomas Vigouroux
e88f154dc4 ci(Mergify): configuration update 2021-07-18 18:30:56 +02:00
Thomas Vigouroux
5106030515 ci(Mergify): configuration update 2021-07-18 18:17:13 +02:00
Thomas Vigouroux
ae08fd007c chore: setup mergify 2021-07-18 18:08:10 +02: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
Sean Baildon
2b785889a4
create TSTagAttribute highlight group (#1575)
references #1572
2021-07-14 14:33:36 +00:00
GitHub
18388e4bd4 Update lockfile.json 2021-07-14 10:36:08 +02:00
lmlorca
fb5d6e04a8 add @tag.attribute for html like attributes 2021-07-14 10:13:13 +02:00
Stephan Seitz
29113e6892
doc: be more explicit about additional_vim_regex_highlighting (#1561) 2021-07-13 18:08:57 -05:00
GitHub
b2008fcda1 Update lockfile.json 2021-07-13 16:27:49 +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
Stephan Seitz
4571d57251
New stylua version (#1555) 2021-07-11 20:59:06 +00:00
github-actions[bot]
6ebeac9f03
Update lockfile.json (#1554)
Co-authored-by: GitHub <noreply@github.com>
2021-07-11 20:22:30 +00:00
Santos Gallegos
948fa6a260
Python: fix class highlights (#1548) 2021-07-11 15:06:52 -05:00
GitHub
f81c6a4595 Update lockfile.json 2021-07-11 21:54:24 +02: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
Santos Gallegos
8eb8cc61e3 downcase predicate: nil protection
get_node_text could be nil if the range is invalid.

With https://github.com/neovim/neovim/pull/15030/
this fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1531
2021-07-09 20:05:37 +02:00
Andrew Helwer
08c6a3fb55
Add info about queries and filetype detection to Adding Parsers section of README (#1533)
* Updated Adding Parsers section of README

Added info about necessity of manually adding queries
Added info about filetype detection

* Updated troubleshooting section

Added suggestion to check for missing queries or filetype detection
2021-07-09 00:31:00 +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
GitHub
d9baef30f3 Update lockfile.json 2021-07-08 22:09:59 +02:00
Munif Tanjim
97761acaff Folds: support 'foldminlines' 2021-07-08 21:42:02 +02:00
Michael Hoffmann
61411b27c5
remove packer and nomad from hcl.used_by (#1527) 2021-07-07 18:12:41 -05: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
GitHub
d82e1735f2 Update lockfile.json 2021-07-07 22:09:31 +02:00
GitHub
377cb02eb0 Update lockfile.json 2021-07-07 21:52:11 +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
GitHub
c37e79803e Update lockfile.json 2021-07-07 01:40:33 +02:00
Stephan Seitz
b7364d923b CI: remove LLVM compilation from Mac CI 2021-07-07 01:06:37 +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
GitHub
b392b73230 Update lockfile.json 2021-07-06 20:05:08 +02:00
Stephan Seitz
f280847b78 highlights(cuda): add support for __restrict__ 2021-07-06 19:38:58 +02:00
Andrew He
901406cf7a Folds: fix fold deduplication and improve start/stop logic 2021-07-06 19:00:59 +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
Stephan Seitz
53d92f65bd parsers: Teal now requires generate from grammar 2021-07-06 01:55:45 +02:00
GitHub
0a363c55d3 Update lockfile.json 2021-07-06 01:55:45 +02:00
Sergio Alejandro Vargas
820b4a9c21 Use @keyword.function consistently 2021-07-06 00:53:40 +02:00