Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* Comment: use `@combined` to create just one tree per buffer
There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251
* Add injections for scss
* Fix jsonc
* Combine jsdoc
2021-04-28 07:19:07 -05:00
Stephan Seitz
853caf5b3d
highlights(rust): Add operator "?"
2021-04-06 19:50:23 +02:00
Stephan Seitz
edcac596ce
highlights(rust): Highlight dereferenced closure parameters
2021-03-26 20:12:38 +01:00
Yuki Ito
0c12ff67fe
rust: tread , as a punctuation delimiter
2021-03-22 07:07:27 +01:00
Santos Gallegos
065ff440d4
Rust: add mod_item to folds
2021-03-15 19:23:59 +01:00
Rohit Pradhan
0e3dd8d3fa
Rust: Add variable and closure parameter highlights
2021-03-15 19:02:39 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
Brian Shu
7ffcaf4ee8
fixed rust match indents
2021-03-01 23:35:25 +01:00
elianiva
0bf8f58cd2
feat: use @ignore for comments and multiline strings
2021-03-01 23:28:53 +01:00
elianiva
6533fb9af7
fix: rust use_list + tuple_expression indent
2021-02-08 07:03:16 +01:00
Cédric Barreteau
74b84a66d7
Use function keyword highlight group for Rust's fn
2021-01-20 20:26:35 +01:00
elianiva
9184cf3953
feat: added more indent queries
2021-01-14 14:43:04 +01:00
Brian Shu
005a3ca7f1
started branch
2021-01-07 01:31:39 +01:00
Santos Gallegos
3d4662e797
Rust: highlight brackets
2021-01-04 08:22:54 +01:00
Stephan Seitz
45397ebbd9
fix(highlights): Add TSNamespace highlight
...
Start adding highlights for
- C++
- Rust (including other scoped_identifier/scoped_type_identifier fixes)
- JS (only namespace_import)
Addresses #516
2020-10-10 15:31:51 +02:00
Stephan Seitz
3362f45196
Remove textobjects module
2020-10-04 14:20:20 +02:00
Stephan Seitz
7e3c4f8089
Add @keyword.operator for operators that are English words and add @exception for Java/JS
2020-09-19 07:30:49 +02:00
kiyan42
feead20c04
change @meta to @type for derive directives because @meta is not defined
2020-09-06 17:00:41 +02:00
Avi Dessauer
d2538ab7a7
Change self back to variable.builtin
2020-08-20 09:03:58 +02:00
Avi Dessauer
aacca0abf1
Deduplicate queries/rust/highlights.scm
...
Co-authored-by: TravonteD <tman1300@aol.com>
2020-08-20 09:03:58 +02:00
Avi Dessauer
df37483e3a
Highlight operators + improve consistency with Vim syntax
2020-08-20 09:03:58 +02:00
Steven Sojka
ce43dbf54c
fix(queries): use vim-match for non lua regexes
2020-08-16 18:31:56 +02:00
Thomas Vigouroux
6133257ed6
highlights(rust): fix some type highlights.
2020-08-07 15:03:20 +02:00
Thomas Vigouroux
94a5056269
highlights(rust): add async/await keywords
2020-08-07 15:03:20 +02:00
Stephan Seitz
58c6d2a73f
Attach kind of reference to query result instead of using subfields
...
This makes smart_rename work also for types out of the box and we don't
need to search for the path of actual node.
2020-07-20 08:55:53 +02:00
winwisely268
59c084b5d8
go loop and func literal, rust textobject support
2020-07-17 20:44:43 +02:00
Stephan Seitz
a027ffbe82
Add rust locals.scm
2020-07-13 22:25:33 +02:00
Thomas Vigouroux
0d2385407e
Add Rust queries ( #57 )
...
* queries(rust): add highlight query.
Also slightly changes the way constructors are highlighted.
* highglight(rust): use new query syntax
2020-07-08 12:35:53 +02:00