Commit graph

1715 commits

Author SHA1 Message Date
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
Khue Doan
93d7d536d1 Use terraform ft for tf and tfvars 2021-09-17 21:06:36 +02:00
Khue Doan
1311dbeea2 Support HCL file type detection 2021-09-17 21:06:36 +02:00
Thomas Vigouroux
a9a76a6970 feat(mergify): delay mergify merging by one day 2021-09-17 21:06:36 +02:00
GitHub
cd5d1ea9f6 Update lockfile.json 2021-09-17 21:06:36 +02:00
Thomas Vigouroux
7d00a39466 fix: only automerge when then is two approvals 2021-09-17 21:06:36 +02:00
Thomas Vigouroux
97f15c5c85 fix(mergify): only merge when there is no review requests 2021-09-17 21:06:36 +02:00
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