Commit graph

487 commits

Author SHA1 Message Date
Stephan Seitz
4571d57251
New stylua version (#1555) 2021-07-11 20:59:06 +00:00
Santos Gallegos
8eb8cc61e3 downcase predicate: nil protection
get_node_text could be nil if the range is invalid.

With https://github.com/neovim/neovim/pull/15030/
this fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1531
2021-07-09 20:05:37 +02:00
Munif Tanjim
97761acaff Folds: support 'foldminlines' 2021-07-08 21:42:02 +02:00
Michael Hoffmann
61411b27c5
remove packer and nomad from hcl.used_by (#1527) 2021-07-07 18:12:41 -05:00
Andrew He
901406cf7a Folds: fix fold deduplication and improve start/stop logic 2021-07-06 19:00:59 +02:00
Stephan Seitz
53d92f65bd parsers: Teal now requires generate from grammar 2021-07-06 01:55:45 +02:00
Santos Gallegos
8b876207e6 Update used_by for parent parsers
html_tags and ecma don't have a parser of they own,
but that's actually just to get around to inherit
common queries.

When editing these "base" queries,
the playground breaks. Having them in used_by would fix this.
2021-07-05 12:39:00 +02:00
Santos Gallegos
bd3363e01d Checkhealth: include injections
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1459
2021-07-05 12:34:47 +02:00
Santos Gallegos
be8f656087
Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
antonk52
90f15d9bf7 feat(keywords) merge return and yield into keyword.return group 2021-07-04 21:49:17 +02:00
antonk52
bd9095e969 feat(keywords) add keyword.return & keyword.yield 2021-07-04 21:49:17 +02:00
Shane Hird
5f60666d97 Fixed linting issues 2021-07-04 14:59:13 +02:00
Shane Hird
7dccbbad6c Reduce diffs from master 2021-07-04 14:59:13 +02:00
Shane Hird
a8d64922fa Re-introduce prompting for installation 2021-07-04 14:59:13 +02:00
Shane Hird
303121e0ec Improved passing bang to functions 2021-07-04 14:59:13 +02:00
Shane Hird
289e73b889 Fix ensure_installed function 2021-07-04 14:59:13 +02:00
Shane Hird
76ea2b8871 TSUpdate does not install if up to date 2021-07-04 14:59:13 +02:00
Shane Hird
b46580fb66 Use bang for TSInstall commands 2021-07-04 14:59:13 +02:00
mhoffm
b67442f112 fix missing maintainer in hcl parser config 2021-07-02 19:47:30 +02:00
Uy Ha
e01e79c46c Add external scanner for cmake parser 2021-07-02 08:37:02 +02:00
Uy Ha
9dac8b403d Add maintainer info 2021-07-02 08:37:02 +02:00
Uy Ha
a51f25819a [WIP] tree-sitter-cmake integration 2021-07-02 08:37:02 +02:00
mhoffm
54eb49bf9c add used_by directive for some of the tools that are using hcl 2021-07-02 01:56:25 +02:00
mhoffm
3df418ae8a drop 'used_by' from hcl parser config 2021-07-02 01:56:25 +02:00
mhoffm
9275a15aad add hcl parser 2021-07-02 01:56:25 +02:00
Folke Lemaitre
917ae3da7c fix: check if invalidate_query_cache[lang] is set before invalidating 2021-06-29 20:06:16 +02:00
Folke Lemaitre
90024c24aa perf: cache has_query_files: fixes TS slowness 2021-06-28 16:17:23 +02:00
kmarius
8adb2e0352 fix typo: Enviroment -> Environment 2021-06-22 07:27:00 +02:00
Stephan Seitz
44a8c6937a fix(parsers): cuda requires npm 2021-06-17 08:49:24 +02:00
Stephan Seitz
8eb37c4409 parsers: add tree-sitter-cuda 2021-06-14 07:30:51 +02:00
Luxed
b5d603a876 parsers(c_sharp): put myself as a maintainer 2021-06-04 23:56:26 +02:00
derekstride
e98e2eafa2 downcase! directive to use with ruby injections
```
(#downcase! "language")
```

downcase! will ensure the metadata value for the specified key will be
downcased. If the value is a node, it will downcase the text specified
by the node.

```
(#downcase! @node "key")
```

You can also namespace the key with a specific capture, similar to how
you can call `(#set! @node "key" "value")`
2021-06-04 07:47:21 +02:00
Stephan Seitz
ee2266993b Fix 1359: nil check for version in health-check 2021-06-04 07:46:11 +02:00
Stephan Seitz
871d6d9f92 fix: return when no node found during installation
Ref: https://github.com/nvim-treesitter/nvim-treesitter/issues/1324#issuecomment-853418596
2021-06-03 14:24:25 +02:00
Stephan Seitz
31f1125827 Fix #1324: tree-sitter CLI requires node 2021-06-03 14:24:25 +02:00
Stephan Seitz
66f75c58d9 chore: show errors output during async installation 2021-06-01 21:38:17 +02:00
Santos Gallegos
c1f61d4ca1
Improve check-queries (#1253)
- Add checks for injections.
- Allow queries that start with [A-Z] for highlights only.
- Don't stop on the first error, finish checking all queries.
2021-05-31 17:03:27 +00:00
elianiva
11bc69305f feat: use the original scss parser
..and add myself as the maintainer
2021-05-26 07:47:58 +02:00
Stephan Seitz
945c93c1ad parsers: generate_requires_npm for commonlisp 2021-05-18 21:34:24 +02:00
Daniel Kempkens
ba45e0d3ed CI: Improved parser installation logic 2021-05-18 19:10:06 +02:00
Daniel Kempkens
9f0f594ab8 Add requires_generate_from_grammar 2021-05-18 19:10:06 +02:00
Daniel Kempkens
e7e1db38cd Initial Elixir support 2021-05-18 19:10:06 +02:00
Stephan Seitz
7ccbf7ca7e parsers: remove requires_generate_from_grammar for supercollider 2021-05-17 21:54:19 +02:00
Stephan Seitz
69b2e88839 parsers: fortran no longer requires_generate_from_grammar 2021-05-17 21:43:08 +02:00
Stephan Seitz
64f13eace5 Extend CL highlights 2021-05-17 20:45:31 +02:00
Stephan Seitz
e197736061 Add support for Common Lisp 2021-05-17 20:45:31 +02:00
Camden Cheek
40ffe75bd2
Add config for Dockerfile parser (#1288) 2021-05-11 16:03:36 +00:00
Thomas Vigouroux
0704c73595 chore(erlang): don't generate parser from grammar 2021-05-07 20:59:34 +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
68d2b01572 parsers: add tree-sitter-fish
Addresses #1268
2021-05-07 10:12:31 +02:00