Pau Ruiz Safont
0df1803056
highlights(ocaml): change order or captures
...
This because the later captures have more priority in neovim, not less
like in upstream.
This fixes highlighting highlighting for let* and +, for example.
2021-02-28 22:32:07 +01:00
Pau Ruiz Safont
633b42b2a2
highlights(ocaml): add unit and pretty_printing_indication
2021-02-28 22:32:07 +01:00
elianiva
1bbcd2fbc2
svelte: also capture src as text.uri
2021-02-28 14:01:54 -05:00
Santos Gallegos
91a89aa408
HTML: capture src attributes as text.uri
2021-02-26 07:45:59 +01:00
jghauser
b0e1520f47
Add inline html comments
2021-02-25 13:42:25 +01:00
Cédric Barreteau
f68567f7e2
ledger: update highlights
2021-02-23 22:34:59 +01:00
elianiva
25bb379a05
fix: missing erroneous end tag
2021-02-23 16:27:16 +01:00
elianiva
72d38fc44b
refactor: use eq
2021-02-23 16:27:16 +01:00
elianiva
17a74e2055
feat: improved highlight + injections, cc @stsewd
2021-02-23 16:27:16 +01:00
elianiva
a73e200abf
feat: add support for svelte
2021-02-23 16:27:16 +01:00
kiyan
2d82a7fe07
add do statement to lua indents
2021-02-23 00:28:43 +01:00
Kassio Borges
f6b4c6b2d6
Ruby constants highlighted as Type
...
In ruby constants and types are usually highlighted the sameway.
Based on vim-ruby highlight.
https://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim#L502
2021-02-22 21:08:49 +01:00
elianiva
1ab424d384
add formal_parameters
...
as suggested by p00f
Co-authored-by: Chinmay Dalal <chinmay.dalal.22012001@gmail.com>
2021-02-21 15:08:50 +01:00
elianiva
a1b51a67d5
feat: add java indent
2021-02-21 15:08:50 +01:00
Stephan Seitz
eaca722783
highlights(java): Highlight spread parameters
2021-02-19 23:41:42 +01:00
Stephan Seitz
5033d3668a
highlights(java): fix constant highlighting (only UPPERCASE_LETTERS)
2021-02-19 23:41:42 +01:00
Hugo Osvaldo Barrera
4847f5a5a7
Add support for folding Vue files
2021-02-17 14:43:32 +01:00
Hugo Osvaldo Barrera
ff7ec08a1e
Add support for Vue files
...
I haven't included parsing the `style` tag, since the only applicable
queries we have are CSS (which actually works fine for SCSS too).
2021-02-17 14:43:32 +01:00
Hugo Osvaldo Barrera
33a7a694d9
Add support for JSONC
2021-02-15 21:45:16 +01:00
Stephan Seitz
2655fc94b0
highlights(rst): Reset highlights in doctest_block
2021-02-15 15:36:33 -05:00
Santos Gallegos
34fdacc0e9
Json: update folds
...
Allow to fold mappings.
2021-02-13 21:29:37 +01:00
Stephan Seitz
2e3422df8e
highlights(nix): fix for alias name of identifier in attrpath
2021-02-12 08:22:34 +01:00
Santos Gallegos
2ad1f76b7d
Query: highlight modeline
...
Matches the first comment and the beginning from the pattern
52397aaa0d/runtime/lua/vim/treesitter/query.lua (L25)
2021-02-12 08:02:00 +01:00
Steven Sojka
39a2ea730d
feat(javascript): add template string language injection
2021-02-11 20:41:35 +01:00
Santos Gallegos
76a7000384
Use eq?
2021-02-11 07:42:19 +01:00
Santos Gallegos
b86555d9c3
HTML: improve highlights & injections
2021-02-11 07:42:19 +01:00
Santos Gallegos
7d7566f4e4
Query: add folds
2021-02-11 07:07:16 +01:00
Santos Gallegos
72ecefc859
C/CPP: add injections for macros
2021-02-10 22:26:04 +01:00
Santos Gallegos
6301bf7952
YAML: add locals
...
This is so incremental selection works
2021-02-10 22:25:12 +01:00
Mads Kjeldgaard
bf112c13a5
Cleanup
2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
9ebeb859c1
Cleanup
2021-02-10 22:21:17 +01:00
mads kjeldgaard
2208b31db6
Update queries/supercollider/locals.scm
...
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2021-02-10 22:21:17 +01:00
mads kjeldgaard
6aff8f4068
Update queries/supercollider/highlights.scm
...
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
6770b3ac8e
Keyword
2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
67baf4ee85
remove @escape
2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
1f7db48523
Add supercollider support
2021-02-10 22:21:17 +01:00
Jędrzej Boczar
517c62d3e5
Add devicetree parser with queries ( #900 )
...
* Add devicetree parser with queries
* [docgen] Update README.md
skip-checks: true
* queries/devicetree: update highlight capture groups
* minor fix in CONTRIBUTING.md
* Revert "minor fix in CONTRIBUTING.md"
This reverts commit 23622b49db .
* queries/devicetree: add self as maintainer
* [docgen] Update README.md
skip-checks: true
Co-authored-by: Github Actions <actions@github>
2021-02-10 22:18:38 +01:00
Santos Gallegos
98127bded6
Lua: highlight fields
2021-02-10 22:15:17 +01:00
elianiva
6533fb9af7
fix: rust use_list + tuple_expression indent
2021-02-08 07:03:16 +01:00
Santos Gallegos
bfcf03853f
Yaml: fix folds
...
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/887
(block_node) includes more nodes to fold, test with:
```yaml
days:
Monday:
- test: example
Tuesday:
- test: example
Wednesday:
- test: example
- test: example
Thursday:
- test: example
Friday:
- test: example
- foo: |
One
Two
Three
```
2021-02-07 15:37:21 +01:00
Santos Gallegos
51d70c9f0c
Query: add regex injections
2021-02-07 15:30:15 +01:00
Santos Gallegos
e5319aa9aa
Lua: improve scope queries
...
- Set scope to parent
- Group all scopes
- Use the . operator
2021-02-07 15:26:34 +01:00
Santos Gallegos
83c3b4ad75
HTML: add folds queries
2021-02-07 15:24:20 +01:00
Santos Gallegos
af36d31cb7
Python: inject rst in docstrings ( #917 )
...
Since hasn't been much discussion around
https://github.com/nvim-treesitter/nvim-treesitter/issues/806 .
I'm just porting the injection queries.
I've been using this for a while now.
Things I've noticed:
- Due that rst uses indentation for its syntax,
everything is treated as an block quote (but it looks good).
This can be solved by having a predicate like `#dedent!`.
- Looks like there is a bug in how the injected content is extracted
```
def foo():
"""Foo bar"""
```
That would be parsed as a section title for some reason,
but it's a paragraph.
In rst it would be a title if the content was:
```
"""
Foo bar
"""
```
If the content is
```
"""Foo bar"""
```
That's just a paragraph.
I'll try to debug that from the neovim side next week or so.
2021-02-05 15:01:50 +00:00
Cédric Barreteau
9385413597
Update lockfile.json and amount query for ledger
...
`amount_expr` was renamed to `amount` in
52101ac32e890ac224e51cb005182bbe45c0250d.
2021-02-04 21:53:32 +01:00
Cédric Barreteau
69d5dec0ce
Add indents queries for ledger
2021-01-31 20:10:49 +01:00
Cédric Barreteau
459173e5c7
Add ledger parser, folds and highlights queries
2021-01-31 10:44:45 +01:00
Stephan Seitz
f5c41338aa
folds(teal): remove record_declaration from folds
...
See: c647346911
2021-01-30 21:13:14 +01:00
Stephan Seitz
9eaf1840b3
highlights(cpp): fix constructor call highlighting
...
Address #883
2021-01-29 17:01:23 +01:00
Thomas Vigouroux
12181e236e
fix(lua): correctly handle do_statement in locals
2021-01-27 10:21:37 +01:00