Commit graph

578 commits

Author SHA1 Message Date
Omar Zeghouani
71247a4a65 comment: remove @combined 2021-05-17 00:37:32 +02:00
Sergio Alejandro Vargas
d2a5e207b8 Add Julia queries 2021-05-16 21:26:06 +02:00
Sergio Alejandro Vargas
4ad6c526f3 Add do_statement to lua folds 2021-05-16 21:26:06 +02:00
Stephan Seitz
fe4f320b66 highlights(python): use any-of? 2021-05-16 21:13:12 +02:00
Stephan Seitz
efbb1c66d2 highlights(latex): fix regexes with backslashes
https://github.com/neovim/neovim/pull/14382 requires to escape `\` is regexes if they are verbatim `\`

They change in Neovim was incompatible so people that are still behind that revision will have this regex not matching (but it should at least not error)
2021-05-12 01:12:24 +02:00
Pau Ruiz Safont
048682a3ae highlights(ocaml): add hash and sign operators 2021-05-11 23:24:10 +02:00
Camden Cheek
40ffe75bd2
Add config for Dockerfile parser (#1288) 2021-05-11 16:03:36 +00: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
Omar Zeghouani
83f7739071 Add fish queries
Add isatty as builtin

Update function_definition option

Update highlights.scm per review

Fix list indentation

Add maintainer names
2021-05-07 10:12:31 +02:00
Stephan Seitz
2873d1efda highlights(c): highlight (escape_sequence) 2021-05-01 09:39:41 +02:00
Camden Cheek
07fc8cc20e Add go-mod tree-sitter config
Adds a tree-sitter config for go.mod files as well as highlighting
queries.
2021-04-28 17:37:33 +02:00
Stephan Seitz
788d212ab3
locals(js,ts): Add parameters again (#1231) 2021-04-28 07:39:14 -05: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
563616738b folds(c): fold at case_statement 2021-04-26 05:15:55 +02:00
Stephan Seitz
98b9e271ba highlights(cpp): highlight namespaces in using declartions 2021-04-26 01:29:22 +02:00
Stephan Seitz
19efc3d8f3 highlights(cpp): reduce number of regexes 2021-04-26 01:18:28 +02:00
Stephan Seitz
b79e400a51 highlights(cpp): avoid overwriting C CONSTANTS 2021-04-26 01:18:28 +02:00
Stephan Seitz
eca826b703 highlights(julia): add "type"/"primitive" keyword 2021-04-23 23:18:00 +02:00
Stephan Seitz
1353292813 highlights(julia): add punctuation 2021-04-23 23:18:00 +02:00
Alvaro Muñoz
eefa5662e6 replace @class with @type 2021-04-23 21:18:55 +02:00
Alvaro Muñoz
3472947027 Add Codeql indents.scm 2021-04-23 21:18:55 +02:00
Stephan Seitz
ac05d4db50 injections(tsx): inherit injections from ecma
Fixes #1237
2021-04-23 20:33:34 +02:00
Stephan Seitz
88e8eefb2d highlights(fortran): extend queries 2021-04-23 16:03:18 +02:00
Stephan Seitz
9820c8ca7d Add Fortran queries from @oponkork 2021-04-23 16:03:18 +02:00
Stephan Seitz
082d2ef6e1
Add JS/TS parameters again (#1227)
* highlights(js): add parameters

* highlights(ts): add Typescript parameters
2021-04-23 07:20:51 -05:00
Artur Tagisow
e8e8c0f0f2 Highlight v-bind using javascript 2021-04-22 21:24:12 +02:00
Stephan Seitz
3695e58dd3 highlights(csharp): add "with" as @keyword.operator 2021-04-22 18:07:36 +02:00
Thomas Vigouroux
f0ab5edab9 fix(lua): correctly highlight field names 2021-04-22 17:51:43 +02:00
Thomas Vigouroux
9cfd3377e3 fix(highlights): always highlight ternary operator as operator 2021-04-22 17:50:56 +02:00
Thomas Vigouroux
03bb038c70 fix(c): fold switch statements 2021-04-22 16:30:31 +02:00
Stephan Seitz
9ebe0bd8d7 Fix svelte highlights 2021-04-21 19:15:54 +02:00
Stephan Seitz
423fb7b4aa C highlights: Make char_literal @character 2021-04-21 18:37:38 +02:00
Santos Gallegos
574bd5ae37
YAML: update queries (#1203)
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-04-18 21:51:03 +00:00
Shatur95
15f27cf301 Fix identifier type check 2021-04-18 20:40:58 +02:00
Shatur95
ec9ee2757d Fix GDScript highlighting 2021-04-18 20:40:58 +02:00
Stephan Seitz
1d5f928279 highlights(java): add new keyword "yield"
https://github.com/tree-sitter/tree-sitter-java/pull/78 added support
for enhanced switch statements
2021-04-17 20:58:41 +02:00
Imobach González Sosa
a0e99abd7c Indent Ruby singleton classes 2021-04-17 09:39:32 +02:00
Grzegorz Milka
d02caad890 ledger: update highlights
I have updated the highlights in the upstream repo in
941bbf6098.
2021-04-15 10:15:29 +02:00
Stephan Seitz
eb742e304a locals(Go): add namespace definition for import_spec_list
This would define `foo`
```go
import (
	foo "fmt"
)
```
2021-04-13 13:34:57 +02:00
Santos Gallegos
2a946ddc7e
Query: update highlights (#1175) 2021-04-10 15:18:44 -05:00
Stephan Seitz
7e9e8f2af9 Add support for Java records
Ref: https://github.com/tree-sitter/tree-sitter-java/pull/73
2021-04-10 12:27:54 +02:00
Santos Gallegos
c3603ddad1
Yaml: update locals (#1172)
The parser doesn't break the symbols in `*` `&` from the name of
anchors/aliases. So go to definition doesn't work, but highlight of
usage does :D

Test with

```yaml
Defaults: &defaults
  Company: foo
  Item: 123

Computer:
  <<: *defaults
  <<: *defaults
  Price: 3000
```

Ref https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-04-09 19:36:19 -05:00
elianiva
ffbf8f19a4 feat: add scss injection for svelte/vue 2021-04-08 22:50:41 +02:00
elianiva
8ac8f2c39b feat: add scss parser 2021-04-08 22:50:41 +02:00
Stephan Seitz
f8314a4df3 highlights(go): Highlight const_declaration
Fixes #1157
2021-04-07 13:03:44 +02:00
NullVoxPopuli
6df2368242 Update highlights.scm 2021-04-07 05:33:51 +02:00
Stephan Seitz
099b921542 injections(js): add regex highlighting 2021-04-06 21:27:47 +02:00
Stephan Seitz
853caf5b3d highlights(rust): Add operator "?" 2021-04-06 19:50:23 +02:00
Santos Gallegos
4bfccba843 Comment: highlight text nodes
As requested in https://github.com/nvim-treesitter/nvim-treesitter/issues/236#issuecomment-797878646
2021-04-03 10:48:09 +02:00
Himujjal
0b2ec9d266 improved zig grammar and queries 2021-04-02 03:29:21 +02:00