Commit graph

461 commits

Author SHA1 Message Date
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
Camden Cheek
7390cf4590 Fix indentation 2021-04-28 17:37:33 +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
Munif Tanjim
1cc06ac8ba highlight: add 'comment' to hlmap 2021-04-24 16:52:37 +02:00
Jędrzej Boczar
dbb1550aaf tests/indent: move common code out of main lua/ directory 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
63a88c873f move all tests to top-level tests/ directory 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
17ca7725d2 tests/indent: remove indentexpr fix 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
dfcefb3895 tests/indent: improve assertion to print side-by-side diff 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
9f8ff8f6b6 tests/indent: use custom assertion with better suited output 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
70ebdac96a tests/indent: add Lua tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
1d7e5144ab tests/indent: improve Rust tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
69dda8c09d tests/indent: add normal o tests for Python 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
8bbe33b10d tests/indent: test cases with normal o for C/C++ 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
15f0813b6e tests/indent: add multiple C/C++ tests 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
77c97d0f8b tests/indent: refactor indent test runner and auto-discover language test files 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
f026747aa4 fix lua style checks 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
4454459fb2 tests/indent: add basic examples for C and Rust 2021-04-23 21:21:38 +02:00
Jędrzej Boczar
67f2c7149c Initial sketch of automated indent tests 2021-04-23 21:21:38 +02:00
Grzegorz Rozdzialik
aee9ba401e fix(folds): use the correct rational operator
Fixes a bug introduced in 41ed83ffc7
Closes #1226
2021-04-23 19:27:21 +02:00
Stephan Seitz
3b8d23ca30 parsers: Add Fortran parser
Fixes: https://github.com/nvim-treesitter/nvim-treesitter/issues/1194

Refs:
- https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Meeting.20everyone/near/219174700
2021-04-23 16:03:18 +02:00
Thomas Vigouroux
afd5d11519 feat(incremental_selection): don't require locals 2021-04-22 18:12:03 +02:00
Stephan Seitz
e062f8dade parsers: nix no longer requires_generate_from_grammar
Not required after https://github.com/cstrahan/tree-sitter-nix/pull/11
2021-04-22 17:58:51 +02:00
Thomas Vigouroux
41ed83ffc7 fix(folds): always fold more than one line 2021-04-22 16:30:31 +02:00
Stephan Seitz
ddc0f1b606 fix: Sort parsers for :TSInstallInfo 2021-04-21 23:12:17 +02:00
Stephan Seitz
3f5c3c01e6 Avoid Lua 5.3 function table.unpack 2021-04-19 23:43:53 +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
ec9ee2757d Fix GDScript highlighting 2021-04-18 20:40:58 +02:00