Commit graph

540 commits

Author SHA1 Message Date
Stephan Seitz
82afae9c9c Fix bugs in TSRange
- TSRange:new() was missing to extract the line from nvim_buf_get_lines
- TSRange:parent() was only working when current buf == self.buf
2021-11-01 14:51:53 +01:00
Santos Gallegos
55860a76d9 Use wrapper around vim.notify with common options
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1927#issuecomment-947064843
2021-10-22 23:46:16 +02:00
maxxnino
e3e43c479e Add zig as compiler for parser 2021-10-21 22:10:55 +02:00
Santos Gallegos
04db2e8295
Use vim.notify instead of print in some places (#1927) 2021-10-19 12:01:20 -05:00
Connor Lay (Clay)
1676efb9b7 Switch to official elixir-lang parser 2021-10-13 01:31:49 +02:00
Javier López
66f1873213 feat(healthcheck): support native lua healthchecks, and fixes
After neovim/neovim#15259 lua healthchecks are called directly and are
prefered over neovim autoload ones. The discover of Lua ones requires
the function to be named "check()".

Also the mentioned PR changed the design of healthchecks to not use
output capturing, therefore avoid printing and instead concatenate and
call the health functions.
2021-10-11 09:47:16 +02:00
Stevan Milic
ea0f6614b7 Add scala maintainer
Add fold for scala val definition to support type class entries
2021-10-07 23:24:45 +02:00
Cezary Drożak
c2c454c29a parsers: add D parser 2021-10-07 22:43:09 +02:00
Cezary Drożak
e87ed0fdaa feat: add "experimental" key to parsers
feat(ci): mark parsers as experimental in README
2021-10-07 22:43:09 +02:00
Benjamin Graham
6f2b1abd17 Added branch specification 2021-10-03 18:40:25 +02:00
Benjamin Graham
6188437150 LLVM parser/highlighter added 2021-10-03 18:40:25 +02:00
Stephan Seitz
98ada316c3 chore: use vim.ui.select for TSEditQuery if available 2021-10-03 11:17:40 +02:00
Stephan Seitz
44d4d07dbf chore: print compiler version in healthcheck 2021-10-03 11:06:57 +02:00
Stephan Seitz
2a073f760c feat(install): add options prefer_git and command_extra_args
Fixes #1888
2021-10-01 22:21:16 +02:00
Santos Gallegos
e4c56e691a
Use vim-range style (1-index based) when possible (#1841)
https://github.com/nvim-treesitter/nvim-treesitter/pull/1829
half fixed incremental selection for the vim parser,
but other bugs still remain (infinite selection and skip selecting the
root node).

Problems can be replicated with these two files:

(missing selecting the root node)

```vim
set scrolloff=7
set scrolloff=7
```

(infinite loop)

```vim
set scrolloff=7
```

The main problem is that we try to map
the current selection range to a TS range,
but the TS range of a node could include the EOL/EOL marks
so it's impossible to know when to change the vim range
to match the TS range, is more easy to transform the
TS range to a vim range and do the comparison.
2021-09-24 17:46:44 -05:00
Lucas Crownover
da4488c08b Swapping to the correct repo 2021-09-21 01:08:32 +02:00
Lucas Crownover
c99389fcf5 Adding perl parser 2021-09-21 01:08:32 +02:00
Santos Gallegos
3aa122edfd Fix incremental selection for nodes that include EOL
From `:h setpos()`

> If "col" is smaller than 1 then 1 is used.

This can be tested with incremental selection on a vim file.

```vim
set title
```
2021-09-19 14:54:45 +02:00
kghugo
d5e87dde10 Support hjson 2021-09-19 14:19:20 +02:00
Stephan Seitz
dea66fb4ce parsers: add glsl parser 2021-09-17 20:52:13 +02:00
Joakker
16a4da493c New kotlin parser 2021-09-15 12:47:03 +02:00
Stephan Seitz
b9d662cf89 chore: fix formatting in parsers.lua 2021-09-14 21:27:26 +02:00
Thomas Vigouroux
14e9df138b fix(lang): only use first part in multi-lang 2021-09-14 21:27:26 +02:00
Otto Modinos
02350ab7da fix(fennel): update parser and all the queries 2021-09-10 22:24:25 +02:00
rydesun
f900e5dfc8
Add tree-sitter-dot (#1770)
* Add tree-sitter-dot

* Fix DOT highlights

* highlights(DOT): add HTML string

* Remove DOT ftdetect

Vim and Neovim runtime have added DOT filetype detection

* Update DOT highlights
2021-09-01 09:25:45 -05:00
leo60228
93f415029d
Add tree-sitter-pioasm with highlights and injections (#1759)
* add tree-sitter-pioasm with highlights and injections

* [docgen] Update README.md
skip-checks: true

* remove ada injection from pioasm

* address review

* remove unnecessary python predicate

Co-authored-by: Github Actions <actions@github>
2021-08-29 12:10:15 -05:00
Joakker
d8595fb923 Add support for json5 2021-08-25 15:13:00 +02:00
Eduardo Cuducos
a76dbe7335 Replaces curl argument: --no-progress-meter -> --silent
Fix #1748
2021-08-25 09:24:08 +02:00
Thomas Vigouroux
ac9f7a2d5a fix(dowload): don't display curl progress
Fixes #1731
2021-08-24 17:41:01 +02:00
Santos Gallegos
ddcfc01979
Query: allow to pass a list to get_capture_matches (#1693) 2021-08-22 20:22:20 -05:00
Andrew Helwer
17d75b31ea Fixed lua style issues, updated grammar version to fix macOS build issues 2021-08-20 18:56:14 +02:00
Andrew Helwer
a19912e105 Filetype is tla 2021-08-20 18:56:14 +02:00
Andrew Helwer
da2336ea80 Added TLA+ grammar & queries 2021-08-20 18:56:14 +02:00
Santos Gallegos
955f19c64a
Add jsx to javascript (#1696)
This is mainly so the playground doesn't error when opening the jsx
query files.
2021-08-20 11:29:33 -05:00
Clay
57c2081e3f Add HEEx language support, add missing commentstrings 2021-08-18 14:07:59 +02:00
Thomas Vigouroux
f2076b267e feat: add support for vim 2021-08-16 15:09:53 +02:00
maxxnino
53160520e2 Update new query and parser for zig 2021-08-11 08:16:16 +02:00
Santos Gallegos
70b43fbe21 CI: fix update lockfile job
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1661#issuecomment-894722369
2021-08-08 14:50:36 +02:00
Munif Tanjim
6ed86a8516
feat: allow 'revision' override in parser config (#1661) 2021-08-07 18:23:11 -05:00
Munif Tanjim
35a8fe5a81 fix: query_predicate - nth 2021-08-03 21:45:16 -05:00
Connor Lay (Clay)
6944173e87
Feature: Add Surface language and integrate with Elixir (#1645)
* Add initial surface highlights & injections

* Additional surface highlights

* Filetype detection, fix injections

* Fix Elixir function highlight when left is an identifier

* Add surface parser

* Fix comment highlights

* Surface folds, indents, better highlights

* Highlight surface components & directives

* Restore comments Elixir injections
2021-08-01 19:09:41 +00:00
Pierre Poupin
605d71ecd3 feature: make godotResource compatible with gdresource filetype 2021-07-29 21:09:54 +02:00
Pierre Poupin
670275de30 feature: add godotResource queries 2021-07-29 07:34:15 +02:00
mads kjeldgaard
d4c645c4d9
recurse_local_nodes: type check local_def to ensure it is a table (#1331) 2021-07-21 16:31:55 -05:00
Simon Hauser
e473630fe0 fix: make additional_vim_regex_highlighting actually accept a list 2021-07-20 09:36:22 +02:00
Laurence Tratt
37a220526d "-z" needs to come before "-f". 2021-07-19 21:51:33 +02:00
Laurence Tratt
968ce80c99 Add -z switch to tar.
Some versions of tar automatically infer `-z` if a `.gz` (or other compressed
extension) file is passed -- but some, including OpenBSD's, don't do this and
require an explicit `-z`. As far as I know, any version of tar which
automatically unzips files supports `-z` so this should be a backwards
compatible change for most versions of tar.
2021-07-19 21:51:33 +02:00
26797767+krnik
8df19b91ad Update transferred fish repo info 2021-07-19 21:27:07 +02:00
Tomas Sandven
a6121f014d Add YANG parser 2021-07-19 16:03:27 +00:00
Andrew He
50af926d81 Folds: remove ending marks for folds; they only confuse vim when multiple closes on the same line are expected 2021-07-18 16:57:57 +00:00