Commit graph

956 commits

Author SHA1 Message Date
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
cabd01a5d8 Remove second addition of supercollider 2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
1f7db48523 Add supercollider support 2021-02-10 22:21:17 +01:00
Mads Kjeldgaard
b8a2d45fa8 Add supercollider parser to list of parsers 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
GitHub
ceb2e90f99 Update lockfile.json 2021-02-07 16:24:55 +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
GitHub
7055ba9c89 Update lockfile.json 2021-02-05 10:16:41 -05: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
yzia2000
839f621955 fixed #630 2021-02-04 20:22:57 +01:00
Santos Gallegos
d739409a16 Query: set commenstring 2021-02-04 07:06:05 +01:00
echasnovski
d3901e5833 Update documentation for Enable/Disable commands. 2021-02-01 19:37:39 +01:00
echasnovski
fdfbb5c1bf Implement TSToggleAll. 2021-02-01 19:37:39 +01:00
echasnovski
8e2807d09e Implement TSBufToggle. 2021-02-01 19:37:39 +01:00
GitHub
68a2dc219f Update lockfile.json 2021-02-01 19:32:02 +01:00
Github Actions
d879a76bb9 [docgen] Update README.md
skip-checks: true
2021-02-01 19:02:53 +01:00
Stephan Seitz
2a2c5918ff parsers: change repo link of Elm parser to the new official repo
Follow https://github.com/tree-sitter/tree-sitter/pull/907
and change the link of the Elm parser to the elm-tooling namespace.
2021-02-01 19:02:53 +01:00
Santos Gallegos
a077f61b67 Issue template: use details for nvim --version output 2021-01-31 21:30:02 +01:00
Cédric Barreteau
69d5dec0ce Add indents queries for ledger 2021-01-31 20:10:49 +01:00
GitHub
b465ed0eb2 Update lockfile.json 2021-01-31 10:55:18 +01:00
Cédric Barreteau
459173e5c7 Add ledger parser, folds and highlights queries 2021-01-31 10:44:45 +01:00
GitHub
32e39094b9 Update lockfile.json 2021-01-30 21:19:08 +01:00
Stephan Seitz
f5c41338aa folds(teal): remove record_declaration from folds
See: c647346911
2021-01-30 21:13:14 +01:00
GitHub
8f4ca8404b Update lockfile.json 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
Kevin Anantha
3bef806c18 docs: update README
- change config to configs
2021-01-28 23:36:22 -05:00
oberblastmeister
64ffea57f4
feat(query): add cache for get_query (#879)
* added cached to get_query

* added reload function

* fixed message

* added autocommand to reload cache on bufwrite for query file

* pass filename to autocommand v:lua fn

* removed comment

* added metatable

* fixed loop

* Update lua/nvim-treesitter/query.lua

Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>

* Update lua/nvim-treesitter/query.lua

Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>

* added do ... end to local query_cache

* made line shorter

Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2021-01-28 19:56:55 +01:00
Thomas Vigouroux
12181e236e fix(lua): correctly handle do_statement in locals 2021-01-27 10:21:37 +01:00
Thomas Vigouroux
b8a7f0ea38 fix(lua): correctly highlight do_statement 2021-01-27 10:21:37 +01:00
Steven Sojka
db033f7239 feat(javascript): move shorthand prop to property 2021-01-26 15:00:35 +01:00
Jeffrey Chupp
76d4a2a0c4 Highlight ruby symbols as @property
Distinguish from @constant. Closes #874
2021-01-25 21:39:29 +01:00
GitHub
6d2b1fc566 Update lockfile.json 2021-01-22 21:30:52 +01:00
Santos Gallegos
00ad11eb2f C: add goto to locals 2021-01-22 20:19:43 +01:00
elianiva
f84c93c484 fix: added missing enum indent for typescript 2021-01-21 18:17:54 +01:00
Stephan Seitz
99ecb46592 Ruby highlights: symbol -> simple_symbol, hash_key_symbol, delimited_symbol
Account for https://github.com/tree-sitter/tree-sitter-ruby/pull/152
2021-01-21 12:40:45 +01:00
GitHub
76447498b9 Update lockfile.json 2021-01-21 12:40:45 +01:00
Stephan Seitz
5ea3db83c6 fix(CI): don't let update-parsers fail if no change is necessary 2021-01-21 07:12:49 +01:00
Cédric Barreteau
74b84a66d7 Use function keyword highlight group for Rust's fn 2021-01-20 20:26:35 +01:00