Amaan Qureshi
85330918f0
perf: remove match where possible
2023-04-21 18:24:17 -04:00
Pham Huy Hoang
36d4deb294
fix(dart_indent): Fix dart case/default indent
...
add tests
add tests for fallthrough case
add more tests
keep functional tests
2023-04-14 02:28:42 -07:00
Robert Brunhage
ce3ea7aebe
Revert "fix(dart): function argument indents is inconsistent"
...
This reverts commit ac4020c707 .
2023-04-13 02:31:49 -07:00
Robert Brunhage
ac4020c707
fix(dart): function argument indents is inconsistent
2023-04-11 03:09:53 -07:00
Robert Brunhage
2fe7f969c1
fix(dart): try statement wouldn't indent ( #4623 )
2023-04-10 06:52:50 +00: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
Amaan Qureshi
53695580e3
feat(dart): add folds
2023-02-24 16:24:23 -08:00
SzeLamC
68ab44277c
fix(dart): add @indent_end to } ( #4167 )
...
* fix dart indentation after }
* add some simple test case
2023-02-24 16:06:31 -05:00
dundargoc
4612212c72
docs: fix typos
2023-02-23 11:39:43 -08:00
ObserverOfTime
fe2ee54f3b
highlights(dart): use more specific groups
2022-11-26 13:17:51 +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
Akin Sowemimo
106eb8e500
feat(dart): add function call expression highlight
...
This is a work around since currently the upstream grammar does not
support a call_expression
2021-07-02 01:56:55 +02:00
Akin Sowemimo
5fa8d5741d
feat(dart): add function call query (commented)
2021-07-01 16:02:24 +02:00
Akin Sowemimo
f67a749b0f
feat(dart): add multiplicative_operator
...
and fix conditional_assignable_selector
2021-07-01 16:02:24 +02:00
Akin Sowemimo
fce41bbb6e
fix: assignable selector was removed/hidden
2021-06-06 23:57:01 +02:00
Akin Sowemimo
0efa1ec83a
feat(dart): add late & required keywords
2021-05-19 23:13:37 +02:00
Akin Sowemimo
db31158fda
fix: uppercase variables being highlighted as type
2021-05-18 23:12:56 +02:00
Akin Sowemimo
3633684b47
feat: replace match with any-of
2021-05-18 23:12:56 +02:00
Akin Sowemimo
d3f5802fba
fix: remove duplicate type identifier queries
2021-05-18 23:12:56 +02:00
Akin Sowemimo
bd5fc9a3c9
feat(dart): add async/sync* to highlights
2021-05-18 23:12:56 +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
6cf578084d
Remove invalid dart query
2021-03-16 18:52:43 +01:00
Stephan Seitz
6cd211f647
Mark several invalid queries
2021-03-16 18:52:43 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
elianiva
d0ea01bed9
feat(dart): add indents
2021-03-08 23:13:27 +01:00
Dennis B
aca33c0aca
[highlights] Add TSSymbol highlight group
...
Addresses issue #892
Ruby and Dart literal symbols will now be highlighted by the new
TSSymbol highlight group, which itself will, by default, link to the Vim
Identifier highlight group. Vim theme authors can then set their
TSSymbol colors.
Symbol highlighting can apply to a number of languages as noted in the
following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming)
Not just for Ruby and Dart.
2021-03-04 06:19:40 +01:00
Stephan Seitz
1058c11f46
Dart: Highlight escape sequences
2020-11-15 10:27:25 +01:00
Stephan Seitz
f92978e409
Dart: Highlight identifier_dollar_escaped
2020-11-15 10:27:25 +01:00
Stephan Seitz
93f9708a3c
Dart highlights: Reset highlight in interpolation
2020-10-05 06:37:31 +02:00
Akin Sowemimo
0e37148dd1
Add extension and on keywords
2020-09-27 17:42:27 +02:00
Akin Sowemimo
98c12ec23a
Improve the highlighting for class instantiation
...
So it finds _HiddenClasses as well as OtherClasses
2020-09-24 00:00:59 +02:00
Akin Sowemimo
00e1a5555a
Add locals.scm for dart
...
This is an initial stab at this since I don't know much about how this
should work but this seems to at leas allow incremental selection of
most block of code
2020-09-20 22:10:21 +02:00
Akin Sowemimo
3652bed53e
Re-add attribute highlight
2020-09-18 21:30:13 +02:00
Akin Sowemimo
8cc0b8d4c4
Add case builtin
...
Based on accepted PR to unhide this node
Also show Function as a type correctly
and use existing annotation highlight for annotations
2020-09-18 21:30:13 +02:00
Thomas Vigouroux
b90e520ccd
ci: fix wrong queries
2020-09-11 12:02:35 +02:00
Steven Sojka
ce43dbf54c
fix(queries): use vim-match for non lua regexes
2020-08-16 18:31:56 +02:00
Akin Sowemimo
941e40f659
Re add missing comments
2020-08-09 19:12:26 +02:00
Akin Sowemimo
1427c43cf0
Change capture groups and add variable highlights
2020-08-09 19:12:26 +02:00
Akin Sowemimo
aaa990053a
Add break and increment operators and tweak formatting
2020-08-09 19:12:26 +02:00
Akin Sowemimo
942fe70452
Add todo comment and change this highlight group
2020-08-09 19:12:26 +02:00
Akin Sowemimo
d4fbbc05af
Add new highlight queries
2020-08-09 19:12:26 +02:00
Stephan Seitz
121c44a23b
Dart highlights: add documentation_comment
2020-07-26 17:23:46 +02:00
Stephan Seitz
8021a769ed
Dart highlighs: disable invalid nodes after parser update to fix CI
2020-07-26 17:23:46 +02:00
Akin Sowemimo
599bec3890
Rename attribute to annotation
2020-07-23 17:17:03 +02:00
Akin Sowemimo
72efa353f0
Remove todo comment
2020-07-23 17:17:03 +02:00
Akin Sowemimo
12feef7af8
Add getter and setter signature highlights
2020-07-23 17:17:03 +02:00