Mateus B. Melchiades
cb7ea44a7b
Update Vala highlights
2022-01-29 18:43:44 +01:00
Mateus B. Melchiades
3f046500ae
Simplify vala highlights.scm
2022-01-29 18:43:44 +01:00
Mateus Melchiades
5fc4cb5d2d
Vala language support
2022-01-29 18:43:44 +01:00
Pedro Castro
29fc7ed14c
indents(r): update @indent group
2022-01-29 15:25:56 +01:00
Pedro Castro
807b20d0de
indents(r): add indents support
2022-01-29 15:25:56 +01:00
Stephan Seitz
e4675bc410
highlights(c/cpp): highlight case labels as constants
2022-01-29 13:11:56 +01:00
Stephan Seitz
1d3111ccb1
highlights(c): highlight enum variants as @constant
...
Fixes #2120
2022-01-29 13:11:56 +01:00
Stephan Seitz
974e2181a0
highlights(cpp): fix function highlighting of Foo::bar::baz()
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2396
2022-01-29 12:40:35 +01:00
Mads Kjeldgaard
0f6492506d
supercollider: add support for const
2022-01-29 11:10:24 +01:00
Mads Kjeldgaard
631734743a
supercollider: update indent query to match upstream
2022-01-29 11:10:24 +01:00
Stephan Seitz
7f7ef0af9d
folds(c): fold raw compound_statements
...
This will fold in particular around raw braces
as reported in #2359 while avoiding to have double folds
at functions+braces.
2022-01-28 19:54:26 +01:00
Stephan Seitz
c4e3564ea3
highlights(python): add support for pattern matching
...
Fixes #2080
Depends on https://github.com/tree-sitter/tree-sitter-python/pull/140
2022-01-28 19:11:20 +01:00
Stephan Seitz
542d098e14
highlights(go): highlight package_identifier as @namespace ( #2371 )
2022-01-28 18:44:32 +01:00
Pedro Castro
07770b2daa
highlights(r): highlight string_escape, change parameter priority and update pipe
2022-01-28 14:32:58 +01:00
Vasiliy Morkovkin
620cc936ad
update TLA+ revision, add queries for PlusCal ( #2344 )
2022-01-25 21:02:20 +00:00
Clay
2532937ba1
Add tree-sitter-eex parser for (L)EEx files ( #2351 )
2022-01-25 16:52:51 +00:00
Cédric Barreteau
91fdda9b5c
folds(c): fold at compound_statement
2022-01-24 22:56:58 +01:00
Stephan Seitz
ae4c982f94
indents(php): align with C indentation
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
2022-01-24 22:33:41 +01:00
Thomas Vigouroux
2bdaff2ab0
feat(vim): highlight "higlight" variants
2022-01-24 13:24:31 +01:00
Thomas Vigouroux
073a3ac929
feat(vim): support syntax command
2022-01-24 13:24:31 +01:00
Ryan Roden-Corrent
f67eb83be5
feat(indent): Implement basic indent for gdscript.
...
Indent is not handled correctly when adding new lines.
It seems that functions/loops/etc. are not recognized until they have at
least one indented block.
For example, if you enter a newline after `func foo():`, the cursor will
not be indented. If you manually indent and add a line like `pass`,
e.g.:
```
func foo():
pass
```
now any insertions above or below `pass` will be indented correctly.
This might be an issue with the grammar, as it seems to apply to highlights
as well.
The following will not be highligted
```
func foo():
```
However, the following will be:
```
func foo():
pass
```
2022-01-24 13:11:01 +01:00
Michael Härtl
d3dbd4590e
fix(phpdoc) Improve keyword query
2022-01-24 11:47:11 +01:00
Clay
9e90866bce
Upgrade to HEEx parser 0.3.0
2022-01-24 08:29:42 +01:00
Clay
c7d5ba7212
Add new Elixir language injections
2022-01-24 08:27:44 +01:00
Clay
7a1c404fe7
Fix highlights of module attributes and doc sigils
2022-01-24 08:27:44 +01:00
Pedro Castro
6a958eccef
highlights(r): change groups priority
2022-01-22 11:31:58 +01:00
Munif Tanjim
c2e3938510
fix(indent): rust - support newline after closing brace
2022-01-21 16:40:36 +01:00
Munif Tanjim
7a6d93ca5b
feat(indent): ecma - support common use-cases
2022-01-21 16:40:36 +01:00
Munif Tanjim
782e299cd6
fix(indent): c/cpp - support newline after closing brace
2022-01-21 16:40:36 +01:00
Munif Tanjim
8f9d4ada35
feat(indent): ecma - support try_catch and if_else
2022-01-21 16:40:36 +01:00
Munif Tanjim
bb60706433
feat(indent): support @aligned_indent for python
2022-01-21 10:51:51 +01:00
Munif Tanjim
c0110e34aa
feat: rewrite indent module
2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa
feat: improve indent module
...
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
Michael Härtl
d7c4ae886d
parsers: add phpdoc parser (experimental)
2022-01-20 15:37:44 +01:00
John Drouhard
d0158c053d
highlights(c): don't highlight type qualifiers in declarations as types
2022-01-20 08:40:51 +01:00
Michael Härtl
983c46d55c
fix(php) match magic and single letter constants
2022-01-19 19:17:01 +01:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's ( #2272 )
...
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua
BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
Stephan Seitz
cc1890528f
highlights(swift): add more @operators and implicit keyword
2022-01-18 22:09:21 +01:00
Stephan Seitz
8025b90329
highlights(swift): highlight "->" as @operator
2022-01-18 22:09:21 +01:00
Stephan Seitz
a3c86fe843
highlights(swift): highlight punctuation
...
"?" is still missing:
https://github.com/tree-sitter/tree-sitter-swift/issues/38
2022-01-18 22:09:21 +01:00
captainko
b42de97339
feat(java)(highlights): add missing highlights for @type
2022-01-18 21:59:36 +01:00
Michael Härtl
723d91e821
highlights(php): detect constructor calls on instantiation
2022-01-17 21:38:40 +01:00
Stephan Seitz
788814fb06
highlights(cpp): add support for "<=>", "constinit", "consteval"
2022-01-17 16:52:45 +01:00
Stephan Seitz
6a61461d18
highlights(hack): add keywords implements
2022-01-17 10:53:35 +01:00
Stephan Seitz
cc0bdabe5f
highlights(hack): extend queries add tests
2022-01-17 10:53:35 +01:00
Stephan Seitz
d53de75cfd
highlights(hack): add some basic highlights
...
Fixes #2041
2022-01-17 10:53:35 +01:00
Stephan Seitz
3ee34749bc
locals(cpp): add support for concepts
2022-01-16 22:19:34 +01:00
Stephan Seitz
db01c82b08
highlights(cpp): add support for concepts
...
Requires https://github.com/tree-sitter/tree-sitter-cpp/pull/138
2022-01-16 22:19:34 +01:00
Elwardi
82fcdb2a2a
support PyFoam syntax in OpenFOAM files
2022-01-16 18:59:29 +01:00
Stephan Seitz
7889b3aea8
highlights(rust): add "yield" keyword
2022-01-16 16:27:29 +01:00