Commit graph

1829 commits

Author SHA1 Message Date
Santos Gallegos
bd13991050
Rust: highlight uppercase identifiers in match arms as constant (#1940)
* Rust: highlight uppercase identifiers in match arms as constant

Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1928

* Highlight builtins
2021-10-30 12:09:54 -05:00
Yuri Pieters
d53b04189e
Add fennel ftdetect file (#1952) 2021-10-30 12:08:10 -05:00
Santos Gallegos
fe4e4aa286
yaml: improve highlights and locals (#946)
- More scopes
- Highlight strings as strings
- Recognize more keys/fields

Improvements can be seen with this weird yaml:

```yaml
{ foo: bar }
---
{a: [b, c], [d, e]: f}

---
- { single line, a: b}
- { multi
  line, a: b}
---

"fooo": bar
'foo': bar
one: two
```
2021-10-26 22:47:59 -05:00
GitHub
0bbc6e3d16 Update lockfile.json 2021-10-23 00:02:49 +02: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
Clay
97819053c8
Elixir: fix a few highlights, add ExUnit support to locals (#1933)
* Fix "not in" and sigil highlights

* Add ExUnit test case to locals

* Update README to mention new Elixir parser
2021-10-22 16:33:01 -05:00
Stephan Seitz
57d3126ac1
Update parsers with C# fixes (#1910)
* highlights(c_sharp): fix queries for parser update

* Update c_sharp parser

* Fix generic method
2021-10-22 16:31:41 -05:00
Santos Gallegos
10419ee747 Python: highlight interpolation escaped chars
Support for these was just added in the grammar.
2021-10-22 09:21:42 +02:00
GitHub
0545b3de55 Update lockfile.json 2021-10-21 23:54:07 +02:00
maxxnino
e3e43c479e Add zig as compiler for parser 2021-10-21 22:10:55 +02:00
maxxnino
47a9e6dda9 Highlight zig add missing AssignOp 2021-10-21 20:23:01 +02:00
Github Actions
1501b7ae8a [docgen] Update README.md
skip-checks: true
2021-10-21 19:50:23 +02:00
Stephan Seitz
7135321cc2 ci: use nvim v0.5.1 on CI 2021-10-21 19:50:23 +02:00
Stephan Seitz
24edc5d93f ci: upload artifacts before check
This could provide better possibilities to investigate a failed CI.
2021-10-21 19:50:23 +02:00
Cezary Drożak
6cefdf3bab fix(d): don't use string_literals
string_literals is not used in single argument template instances. The
nodes are from [1].

[1]: c2fbf21bd3/grammar.js (L536)
2021-10-20 09:16:20 +02:00
Github Actions
272666ab95 [docgen] Update README.md
skip-checks: true
2021-10-20 09:16:07 +02:00
Stephan Seitz
b6dcb81939 highlights(cpp): highlight literal_suffix as @operator 2021-10-20 09:16:07 +02:00
Santos Gallegos
04db2e8295
Use vim.notify instead of print in some places (#1927) 2021-10-19 12:01:20 -05:00
Santos Gallegos
58dd95f4a4 HTML: highlight text nodes as text 2021-10-15 22:43:24 +02:00
Connor Lay (Clay)
638891d401 Highlight and,or,not,in as @keyword.operator 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
6bd551d3b7 Fix documentation highlights, formatting 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
725ef8fc18 Locals matching "when" operator, add pipe queries 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
25b28f6185 Increase Elixir locals pattern match depth to 20 nodes
This requires an update to `ts_query_cursor_set_match_limit` to
function properly. The current limit is 32 per this PR
https://github.com/neovim/neovim/pull/14915, increasing this value
to 128 appears to work, but more testing will be necessary.

Exposing this limit as a neovim option is worth exploring as a separate
unit of work.
2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
1413f62c88 Update locals with support for deep pattern matches 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
259e3f6e64 Update indents & fix catch highlights 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
886261a96b Update injections & highlights, add folds 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
ec5341a773 Update injections for new elixir-lang parser 2021-10-13 01:31:49 +02:00
Connor Lay (Clay)
e0125a5a1c Update highlights for new elixir-lang parser 2021-10-13 01:31:49 +02: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
Andrew Helwer
6b82b26a74 Updated TLA+ grammar version and queries 2021-10-07 22:38:06 +02:00
oxalica
ecd9efd486 Update toml highlight queries 2021-10-04 12:41:26 +02:00
GitHub
fc1c31a393 Update lockfile.json 2021-10-03 21:26:37 +02:00
Benjamin Graham
6d504dd0f8 Query fix 2021-10-03 18:40:25 +02:00
Benjamin Graham
50fc1b6b35 Highlighting fixed 2021-10-03 18:40:25 +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
GitHub
70b1997cd7 Update lockfile.json 2021-10-03 11:23:47 +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
Vikas Raj
8ce13aa6f7 graphql: add commentstring 2021-10-03 11:02:34 +02:00
kiyan
3b533422df fix: remove priority in ecma template substitution hl
This PR removes the priority override for the interpolation because it
overrides every ecma based template literal, setting none with a higher
priority than ecma groups which made every template string look
`un`highlighted.
2021-10-03 11:01:30 +02:00
Stephen Bolton
e0e6d1b263
Add headers as an option to fold on (#1873)
* Add headers as an option to fold on

treesitter-beancount added grammar rules around orgmode and markdown
headers so that they are recognized in beancount documents. This change
makes it so that they will be taken into consideration when folding
text.

Commit: 79ae7c1f26

* Fix node name for headers

The correct name for the header nodes is heading.
2021-10-02 00:08:44 -05:00
Santos Gallegos
8cf90f81a4 Rust: highlight loop labels
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1891
2021-10-01 22:33:49 +02:00
Stephan Seitz
f96298df94 Update README.md
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-10-01 22:21:16 +02:00
Stephan Seitz
412752130d docs(install): explain how to use a proxy for download 2021-10-01 22:21:16 +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