Commit graph

1013 commits

Author SHA1 Message Date
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
antosha417
317f5c7471 add hocon 2022-01-16 14:59:39 +01:00
Christian Clason
f3e554ed7b highlight(swift): add upstream queries 2022-01-16 14:27:24 +01:00
Stephan Seitz
152af07ecf highlights/injections/indents(java): comment -> line_comment,block_comment
Ref https://github.com/tree-sitter/tree-sitter-java/pull/93
2022-01-16 14:24:20 +01:00
Infectos
1da55c27cc fix(php): change query for @constructor group 2022-01-16 12:02:24 +01:00
Michael Härtl
749f72d351 highlights(php): fix and add missing highlights 2022-01-15 12:32:03 +01:00
Ananda Umamil
a76e1eb89d highlights(haskell): function with type signature 2022-01-13 21:48:35 +01:00
koalp
c6afb729b9 highlights(julia): add highlight for block comments 2022-01-13 17:56:06 +01:00
Jendrik Stelzner
31fe7ee4f9 Add a missing LaTeX hightlight.
Add \eqref to the list of referencing commands.
2022-01-13 09:44:03 +01:00
Michael Chris Lopez
1f8ef8fe52 highlights(vue): improve vue highlights
- remove template_name and element and make more specific targeting
2022-01-12 12:10:07 +01:00
Michael Chris Lopez
5e2121a227 highlights(html_tags): more specific attribute_value target 2022-01-12 12:10:07 +01:00
Jendrik Stelzner
41a097d9c5 Add LaTeX highlights: addpart, addchap, addsec.
Add highlight for the LaTeX sectioning commands \addpart, \addchap, \addsec and their starred variants.
2022-01-12 00:41:26 +01:00
MDeiml
9fff379c17 Add highlight for markdown delimiters 2022-01-11 12:05:56 +01:00
MDeiml
b5cdb868c7 Fix slow startup times for markdown grammar 2022-01-10 20:32:27 +01:00
Stephan Seitz
0d53066533 highlights(llvm): import highlight queries from upstream 2022-01-09 20:17:08 +01:00
Stephan Seitz
ba2959347d highlights(go): highlights "~"
Follow upstream change
beb36fc9be
2022-01-09 20:16:49 +01:00
Stephan Seitz
2cb67b8f4e folds(bash): fold at c_style_for_statement 2022-01-09 20:16:21 +01:00
Sal Bakraa
a2629ebcc0 fix(kotlin): use _import for type captures 2022-01-08 20:01:00 +01:00
Sal Bakraa
b963e9f994 fix(kotlin): use @attribute instead of @annotation 2022-01-08 20:01:00 +01:00
Sal Bakraa
f92d11cdee fix(kotlin): use correct node for when expression folds 2022-01-08 20:01:00 +01:00
Sal Bakraa
d163f20617 fix(kotlin): fix typo in locals query 2022-01-08 20:01:00 +01:00
Sal Bakraa
2a50ac94bb feat(kotlin): include a folds and a locals query 2022-01-08 20:01:00 +01:00
Sal Bakraa
886ae5b87e fix(kotlin): include regex in injections query 2022-01-08 20:01:00 +01:00
Sal Bakraa
5cfc96effe fix(kotlin): update highlights query to match new parser 2022-01-08 20:01:00 +01:00
MDeiml
391f29c03a Add highlight for quote marker 2022-01-08 20:00:28 +01:00
Elwardi
9b35c671ea Better punctuation queries for foam 2022-01-08 13:20:52 +01:00
Elwardi
efaf985b24 Remove OpenFOAM textobjects 2022-01-08 13:20:52 +01:00
Elwardi
8133888032 Highlight builtins as @constant.builtin in OpenFOAM queries 2022-01-08 13:20:52 +01:00
Elwardi
16e77495c4 Add OpenFOAM parser 2022-01-08 13:20:52 +01:00
Ananda Umamil
50fee51d35 Improve Haskell highlighting 2022-01-08 12:37:11 +01:00
Alexandre A. Muller
a7c0c1764b
Add ninja parser (#2217)
* Add ninja parser

* Add branch main

* No need for ftdetect
2022-01-08 01:26:33 +00:00