Amaan Qureshi
831f37635d
feat(rust): move some keywords & operators to where they belong
2023-04-19 02:28:00 -04:00
Jaehwang Jung
fa9fe9a95b
fix(rust): highlight SNAKE_CASE scoped identifier name as @constant
2023-04-09 08:12:17 -07:00
George Harker
cb568af539
use indent.X syntax for captures and properties of set directives
...
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
2023-03-24 13:07:53 -04:00
Amaan Qureshi
5a87bc98da
feat: add @comment.documentation where applicable
2023-03-05 17:15:32 -05:00
Amaan Qureshi
33ba346e60
feat!: add @keyword.coroutine capture
2023-03-03 07:07:52 -08:00
Chinmay Dalal
68e8181dbc
folds(rust): add array_expression
2023-01-05 20:37:14 +01:00
Stephan Seitz
6a31d9086e
highlights(rust): use @namespace for [(crate) (self) (super)]
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
2023-01-01 15:32:07 +01:00
Trard
00b42ac6d4
rust: use @type.qualifier and @storageclass
2022-11-06 18:10:42 +01:00
Cormac Relf
00add7e4b4
highlights(rust): pub(self/super/crate), use super::thing, etc
2022-11-06 14:32:47 +01:00
Cormac Relf
68c3533852
highlights(rust): ["<" ">"] @punctuation.bracket in bracketed_type, for_lifetimes
2022-11-06 14:32:47 +01:00
Cormac Relf
1379119c31
highlights(rust): "for" @keyword everywhere else (for<'a>, HRTBs)
2022-11-06 14:32:47 +01:00
Cormac Relf
15d3849dcf
highlights(rust): highlight Type in Type::Associated as @type instead of @namespace
2022-11-06 14:32:47 +01:00
Cormac Relf
8c7ffaf66b
highlights(rust): panic!() and assert!() as @exception
2022-11-06 11:34:13 +01:00
Christian Clason
dd89cafd2b
fix(rust): update queries to breaking changes
...
* `if_let_expression` was removed in https://github.com/tree-sitter/tree-sitter-rust/pull/152
* `attributes` were reworked in
https://github.com/tree-sitter/tree-sitter-rust/pull/163 (no more
`meta-item`)
2022-11-05 11:09:54 +01:00
Stephan Seitz
53742779e3
highlights(rust): distinguish between "for" in loops and impl_item
...
Fixes #3641
2022-10-15 04:02:20 -07:00
Lewis Russell
37398c7d68
feat(spell): support more languages
2022-09-26 13:47:12 +01:00
Lewis Russell
2a63ea5665
feat(spell): upstream spell queries from spellsitter
2022-09-06 12:44:19 +01:00
lfenzo
c784720917
Split func/method definition from calls in several programming language queries
2022-08-03 12:05:30 -07:00
kiyan
8bc4d046e7
fix(rust): remove if_let from indent captures
...
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-07-08 00:27:51 +02:00
Stephan Seitz
f301caffc5
highlights(rust): highlight as in <Struct as Trait>::Type
2022-03-11 19:07:11 +01:00
Munif Tanjim
c2e3938510
fix(indent): rust - support newline after closing brace
2022-01-21 16:40:36 +01:00
Munif Tanjim
c0110e34aa
feat: rewrite indent module
2022-01-21 10:51:51 +01:00
Stephan Seitz
7889b3aea8
highlights(rust): add "yield" keyword
2022-01-16 16:27:29 +01:00
Stephan Seitz
225cac5e6b
injections(rust): inject regex into Regex::new
2021-12-14 14:28:26 +01:00
Stephan Seitz
e6eeda7da9
rust(highlights): fix highlighting of char_literal
2021-12-06 21:20:58 +01:00
Sergio Alejandro Vargas
fbbcfa7b6c
highlights(rust): organize keywords and literals
...
- sort keywords
- highlight super as a namespace (same as crate)
- highlight `break` and `continue` as `repeat` keywords
- don't highlight `macro_rules!` as a keyword
- place all literal queries together
- place function definition queries alongside function call queries
2021-11-25 23:53:41 +01:00
Sergio Alejandro Vargas
81f75a54ff
highlights(rust): update operators
...
- sort operators
- remove duplicated `*`
- add missing `<<=`
- highlight `as` correctly in path aliasing
- highlight leading quote `'` as part of a label (not an operator)
- highlight never type `!` as a type
- sort and format punctuation
2021-11-25 23:53:41 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
Santos Gallegos
bd13991050
Rust: highlight uppercase identifiers in match arms as constant ( #1940 )
...
* Rust: highlight uppercase identifiers in match arms as constant
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1928
* Highlight builtins
2021-10-30 12:09:54 -05:00
Santos Gallegos
8cf90f81a4
Rust: highlight loop labels
...
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1891
2021-10-01 22:33:49 +02:00
Santos Gallegos
f05f471185
Rust: fix some highlights
...
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1856
2021-10-01 19:05:19 +02:00
Sergio Alejandro Vargas
eb3a09cb28
highlights(rust): Add colon : to delimiters
2021-09-26 12:24:48 +02:00
Sergio Alejandro Vargas
5ebc74c1a8
highlights(rust): fix bang ! in macro_invocation
2021-09-26 12:24:48 +02:00
Sergio Alejandro Vargas
0cd64db48f
highlights(rust): Fix angle brackets, and closures
...
Highlight angle brackets in type parameters and bars in closures bars as
`@punctuation.bracket` not as `@operator`.
2021-09-26 12:24:48 +02:00
agarof
419153c1f1
folds(rust): Fold trait definitions ( #1582 )
2021-07-18 15:59:58 +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
antonk52
90f15d9bf7
feat(keywords) merge return and yield into keyword.return group
2021-07-04 21:49:17 +02:00
antonk52
bd9095e969
feat(keywords) add keyword.return & keyword.yield
2021-07-04 21:49:17 +02:00
tami5
89b1254cde
rust: inject html to html! macro
2021-06-21 08:52:38 +02:00
Santos Gallegos
709f3a73b3
Rust: fix macros highlights
...
- The derive query was incorrect, it was only matching `#[derive(derive)]`
- Macros were being highlighted as keywords
- Procedural macros symbols weren't highlighted (`#`, `#!`)
2021-06-11 07:54:56 +02:00
Stephan Seitz
db7f10370d
highlights(rust): highlight fields with shorthand_field_initializer
2021-05-24 20:43:31 +02:00
Santos Gallegos
9d1d9b1b94
Rust: highlight constants
2021-05-22 13:17:15 +02:00
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