Commit graph

562 commits

Author SHA1 Message Date
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
Himujjal
83bfcde7c2 fixed some errors 2021-04-02 03:29:21 +02:00
kiyan
8948c331ee fix: jsx indent query 2021-04-01 20:50:25 +02:00
Stephan Seitz
4821bde80a Import highlights.scm from tree-sitter-zig 2021-03-30 22:27:50 +02:00
Stephan Seitz
c7313ffd10 Fix beancount queries 2021-03-30 22:27:50 +02:00
Stephan Seitz
712cc78a1e Add text.reference and text.environment 2021-03-30 19:26:37 +02:00
Stephan Seitz
0556edf5f3 latex: add TSMath that behaves like vimtex math highlighting 2021-03-30 19:26:37 +02:00
Stephan Seitz
ea8c3b2850 feat: Add Latex basic highlights and folds
Fix #1104
2021-03-30 19:26:37 +02:00
Santos Gallegos
0df7c4aa39
Fix jsdoc: play nice with the comment parser (#1108)
Using separate queries makes it work as expected.
Also, for the comment parser to be able to override the other tokens
we need to remove the comment from highlights (this shouldn't be a
problem since that section is already highlighted as a comment).

And, the order of the captures matter,
having jsdoc first will have more priority over `@param`.

Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1069
2021-03-27 10:51:16 -05:00
Stephan Seitz
edcac596ce highlights(rust): Highlight dereferenced closure parameters 2021-03-26 20:12:38 +01:00
Stephan Seitz
2331a36693
highlights(java): Highlight fields (members and member access) (#1107) 2021-03-26 13:25:28 -05:00
kraftwerk28
09045354c0 Add generator functions to ecma queries 2021-03-23 23:37:11 +01:00
Corey Williamson
548a0d8d7f Update teal highlights 2021-03-23 22:20:30 +01:00
Himujjal
597ec69378 Added Zig grammar 2021-03-23 12:36:34 +01:00
Christian Clason
ebdd43b68d add basic queries for bibtex 2021-03-22 22:19:10 +01:00
shirasaka
71e3391a8c Add indents for php 2021-03-22 18:02:10 +01:00
Brian Ryall
600509aad6 delete locals queries for beancount 2021-03-22 07:11:10 +01:00