Alvaro Muñoz
b4ec3ae3f5
improce type highlighting
2020-11-11 16:39:22 +01:00
Chinmay Dalal
484e6aa680
[clojure] add punctuation.bracket
2020-11-10 18:01:12 +01:00
Github Actions
54c832033f
[docgen] Update README.md
2020-11-09 20:21:20 +01:00
Stephan Seitz
b4ea9dcd3c
Javascript highlights: "..." -> punctuation.special
2020-11-09 20:21:20 +01:00
Stephan Seitz
aeb8c7d9fa
JS highlights: highlight optional parameters
2020-11-09 20:21:20 +01:00
Alvaro Muñoz
6900e5f704
minor improvments for QL
2020-11-07 01:11:37 +01:00
sogaiu
6e80f426bf
Add incremental selection support
2020-11-04 10:23:20 +01:00
sogaiu
0f80b7d390
Add initial clojure support
2020-11-04 10:23:20 +01:00
Thomas Vigouroux
6eca8d2f38
parser: only use parse to get a tree
...
This will avoid using internal data.
2020-11-03 21:16:51 +01:00
Stephan Seitz
f999dc4113
💣 !! Use TSUpdate !! Fix ruby queries
2020-11-03 20:26:08 +01:00
Stephan Seitz
1e0ab0b885
Fix Python queries for parser update
2020-11-03 20:26:08 +01:00
Stephan Seitz
b83a973382
💣 !!! Update lockfile !!! Run TSUpdate!
2020-11-03 20:26:08 +01:00
Stephan Seitz
9327b113c2
feat(install): Enable installation of parser with repo.url as a local path
2020-10-31 23:13:04 +01:00
Claudia Hardman
62551bca4e
Add folds for Go
...
The default behavior in which `@scope` captures were folded resulted in
toplevel fold for an entire source file, which was mildly irritating.
2020-10-31 23:11:23 +01:00
Steven Sojka
dd7900fc44
fix(languagetree): highlight children regardless of starting column
2020-10-30 15:01:42 +01:00
BodneyC
333e1ab776
fix( #620 ): Fall into the "update-all" branch if lang is "all"
2020-10-28 10:24:58 +01:00
Steven Sojka
d9454afd93
feat(js): add jsdoc lang injection
2020-10-27 14:08:14 +01:00
Steven Sojka
e9afbef7ae
Merge pull request #585 from fffed/patch-1
...
js: add query for @parameter
2020-10-27 07:48:30 -05:00
fffed
37f57cc1ec
update comment case for simplefied notation
2020-10-27 08:37:09 +03:00
fffed
040d525946
add destructuring variations
2020-10-27 08:34:45 +03:00
Stephan Seitz
aa4c3e83e3
Add virtual range for creating node-like objects from multiple nodes
2020-10-26 18:22:19 +01:00
Stephan Seitz
c3b526fe51
feat(install): add "maintained" option to only install maintained parsers
...
Unmaintained parsers only give users little benefit but take sometimes a
a long time to install (e.g. Markdown, Julia, Haskell parser). We could
recommend to only install maintained parsers by default.
2020-10-26 12:42:10 +01:00
kyazdani42
04ff77442a
show [treesitter] during install
2020-10-24 15:11:01 +02:00
Stephan Seitz
402795997c
feat: add TSConfigInfo to display current config
...
https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
2020-10-24 10:40:12 +02:00
davidroeca
f925408640
use for first identifier in jsx nested_identifier
2020-10-23 22:53:23 +02:00
davidroeca
dafe947ecd
handle jsx components with dot in them
2020-10-23 22:53:23 +02:00
Steven Sojka
2a578e20c2
Merge pull request #612 from JoosepAlviste/master
...
fix(javascript): fix constant variable highlight
2020-10-23 14:40:57 -05:00
Joosep Alviste
31fca67839
fix(javascript): fix constant variable highlight
...
The `@constant` query gets overwritten by the `@constructor` query. They
both query for variables starting with an uppercase letter, but the
`@constant` query took effect first.
2020-10-23 22:05:27 +03:00
Stephan Seitz
d1796695ac
Remove textobjects from contributing
2020-10-23 12:41:50 +02:00
Github Actions
26142b3e3a
[docgen] Update README.md
...
skip-checks: true
2020-10-22 10:42:03 +02:00
Thomas Vigouroux
d42b9c38f8
fix(markdown): remove from parser list
...
Bye bye markdown
2020-10-22 10:42:03 +02:00
Thomas Vigouroux
801416a8bc
fix(markdown): disable highlighting
...
The markdown scanner errors out far too often to be usable, disabling it
by default would avoid many issues until those assertion errors are
fixed.
2020-10-22 10:42:03 +02:00
Santos Gallegos
72f5d72413
LanguageTree: don't error when injecting a language
2020-10-21 16:20:52 +02:00
Thomas Vigouroux
e9129eee49
fix(languagetree): avoid language self-injection
...
This avoids some stack overflows when a language includes itself.
This is a temporary solution, and will be addressed later when actually
managing our own parsers.
2020-10-21 08:36:23 +02:00
Chinmay Dalal
6d352a0efc
Add lua params ( #605 )
...
* Add lua params
* Fix
* Remove redundant outer
2020-10-21 06:46:05 +02:00
Github Actions
0f43bd9293
[docgen] Update README.md
2020-10-20 16:33:13 +02:00
Zeger Van de Vannet
392c4b978b
Add verilog/systemverilog queries
2020-10-20 16:33:13 +02:00
Pau Ruiz Safont
d7e384a092
feat(ocamllex): use injections for ocaml
2020-10-20 10:06:44 +02:00
Stephan Seitz
3160a19de3
Fix #595 , #583 : do not set defaults for highlights that have no default highlighting
2020-10-19 23:03:16 +02:00
Stephan Seitz
4da47d6dea
Remove textobjects from built_in_query_groups
2020-10-19 22:36:38 +02:00
kiyan42
f115d0ebaa
update docs
2020-10-19 21:41:57 +02:00
kiyan42
1735528db5
Treesitter indent
...
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00
kiyan42
36b5f6f075
start indent module
2020-10-19 21:08:15 +02:00
Thomas Vigouroux
a1de79e93a
docs(highlights): document LanguageTree.
2020-10-19 18:28:45 +02:00
Thomas Vigouroux
f7d92f663c
feat(languagetree): implement language tree
...
Allow the LanguageTree to be used as an option for highlighting.
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
2020-10-19 18:28:45 +02:00
Rom Grk
e9b6e2d311
readme: add nvim-treesitter-context
2020-10-19 16:08:19 +02:00
Sam Bernheim
7f3276450b
feat(folds): add catch_clause to js folds
2020-10-16 20:23:45 +02:00
sbernehim4
be2bb166c8
feat: add more javascript folds
2020-10-16 20:23:45 +02:00
Stephan Seitz
994e42fac4
Fix: avoid overwriting tables in insert_to_path
...
The following query will result in matches with only one node though it
requires two nodes to be a match.
```scheme
(function_definition
(comment) @function.inner.start
body: (block) @function.inner)
```
Why? First `insert_to_path` is called for `@function.inner.start` which
will result int the following table.
```lua
{ function = { inner = { start { node } } } }
```
`insert_to_path` will overwrite the result
```lua
{ function = { inner = { node } } }
```
Related #552
2020-10-16 13:48:59 +02:00
kiyan42
e5d8b6ade7
Remove get_parser logic
...
upstream now handles parsers by itself, so we don't need to do it
in this repo.
2020-10-16 13:48:24 +02:00