Commit graph

1991 commits

Author SHA1 Message Date
Philip Zander
fa2a6b68aa highlights(pascal): Highlight variables
Assume that any identifiers that aren't function calls, types, fields or
constants are variables. This is consistent with the highlighting
definitions for other languages. Some themes (e.g. zenbones) make use of
this information and they don't look quite right unless we set those
groups.
2021-12-29 23:38:43 +01:00
github-actions[bot]
ad69e2528a
Update README (#2160)
Co-authored-by: Github Actions <actions@github>
2021-12-24 19:35:59 +00:00
github-actions[bot]
61b55e4459
Update lockfile.json (#2150)
* Update lockfile.json

* Don't update supercollider

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-12-24 19:17:07 +00:00
Isopod
9174b095b6
Add support for Pascal (#2153)
* Add support for Pascal

* Pascal: Replace some of the capture groups, use lua-match where possible
2021-12-24 13:53:32 -05:00
Santos Gallegos
b99f46c735 Query: update highlights
ref https://github.com/nvim-treesitter/tree-sitter-query/pull/17
2021-12-24 03:46:53 +01:00
Santos Gallegos
9025d96159 PHP: highlight unset
Similar to 57f855461a/grammar.js (L130-L132)

Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/2156
2021-12-23 21:02:51 +01:00
jirgn
6b5b37cc3e
update fusion to version 1.1.1 (#2148)
* feat(fusion): update tests

* fix(fusion): update lockfile

* fix(fusion): update to (highlight breaking) version 1.1.0

* update grammer to introduce afx support
* update tests and queries

* fix: revert lockfile update of unrelated grammars

* fix: update to 1.1.1 and fix hightlights

* fix: use @tag.attribute capture to match specs

Co-authored-by: Jirgn <jirgn76@googlemail.com>
2021-12-23 11:18:15 -05:00
Santos Gallegos
56634f49ab Update queries
- Don't use the old form for predicates
- Update some invalid queries
2021-12-22 21:17:28 +01:00
Santos Gallegos
6c5f4b1b49 Markdown: update queries 2021-12-21 01:07:22 +01:00
Stephan Seitz
881cb5b8f2 ci(injection tests): don't consider root language an injection 2021-12-20 18:16:45 +01:00
Stephan Seitz
a3862c9802 ci: add injection tests 2021-12-20 18:16:45 +01:00
Stephan Seitz
c3f73e4b63 ci: Remove "ensure_installed" from minimal_init.lua 2021-12-20 18:16:45 +01:00
GitHub
a6edbc451c Update lockfile.json 2021-12-20 15:27:44 +01:00
Santos Gallegos
1f303c7f3c goto_node: normalize range for nvim_win_set_cursor
Looks like neovim doesn't accept -1 on nvim_win_set_cursor.
It's listed as an exception on `:h api-indexing`.

Fixes https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/149
2021-12-20 15:12:12 +01:00
GitHub
2752160771 Update lockfile.json 2021-12-20 10:30:50 +01:00
Michael Chris Lopez
c9db432435
highlights(markdown): separate highlight for header marker and underline (#2129) 2021-12-19 19:38:42 -05:00
Fabian
e01c7ce972
highlights(python): Improve self and cls highlight (#2134)
1. This function simplifies an unnecessary lua-match usage.
2. Fixes an accidental change, where "cls" was changed to "class" (fe4f320b66)
3. Match functions, which have have a decorator.
4. But exclude @staticmethod
5. Only highlight "cls" as @variable.builtin when the decorator is @classmethod

This might be a bit to complicated and some of this not to useful,
as this existing rule:

```scm
 ((identifier) @variable.builtin
  (#eq? @variable.builtin "self"))
```

overwrites the queries anyway.
2021-12-18 16:49:30 -05:00
GitHub
6788d5d1be Update lockfile.json 2021-12-18 20:56:39 +01:00
GitHub
8e1c2942c2 Update lockfile.json 2021-12-18 20:24:46 +01:00
Omer Tuchfeld
3b05ef4492 Add support for new golang go.work files
The new golang 1.18 version (currently in beta) [introduced](https://github.com/golang/go/issues/45713) a new file type
called `go.work`.

This commit adds support for the syntax of that file using the https://github.com/omertuc/tree-sitter-go-work repository
That repository is heavily based on previous work in the https://github.com/camdencheek/tree-sitter-go-mod repository, with a few
minor changes to make it work on the very similar `go.work` files.
2021-12-18 20:02:08 +01:00
Omer Tuchfeld
4f2b4238ee
Fix misleading text in CONTRIBUTING.md (#2137) 2021-12-18 18:07:18 +00:00
GitHub
288ef60edd Update lockfile.json 2021-12-18 15:07:26 +01:00
github-actions[bot]
e9d046b4ae
Update lockfile.json (#2124)
Co-authored-by: GitHub <noreply@github.com>
2021-12-18 14:51:27 +01:00
Santos Gallegos
4aa9f6b7f7 Make example config more easy to read
Ref https://github.com/nvim-treesitter/nvim-treesitter/issues/2095#issuecomment-992759818
2021-12-18 14:50:48 +01:00
Michael Chris Lopez
296c28be53 highlights(markdown): highlight link_text as @text.reference 2021-12-17 10:36:58 +01:00
GitHub
d3833c0370 Update lockfile.json 2021-12-15 19:09:56 +01:00
Stephan Seitz
f88e16ce0d feat: enable parsers after installation immediately without reload 2021-12-15 18:50:54 +01:00
lucy
be741e2568 highlights(bash): add [[ ]] 2021-12-14 19:31:21 +01:00
lucy
4871b2b440 highlights(bash): add process substitution 2021-12-14 19:31:21 +01:00
GitHub
2447306428 Update lockfile.json 2021-12-14 15:54:55 +01:00
Github Actions
3bb483a5c0 Update README 2021-12-14 15:36:16 +01:00
Stephan Seitz
387a8f38bd parsers: Add MDeiml/tree-sitter-markdown as markdown parser
Fixes #872
2021-12-14 15:00:14 +01:00
Lewis Russell
567c644e53 feat(lang): add make 2021-12-14 14:59:38 +01:00
Stephan Seitz
225cac5e6b injections(rust): inject regex into Regex::new 2021-12-14 14:28:26 +01:00
GitHub
7474cb06c2 Update lockfile.json 2021-12-13 20:40:08 +01:00
numToStr
63630ec082 highlights(lua): next as builtin function 2021-12-13 20:22:05 +01:00
GitHub
143ef2f066 Update lockfile.json 2021-12-12 09:18:53 +01:00
Stephan Seitz
1bbc761acc highlights(ecma): highlight escape_sequence 2021-12-12 02:43:08 +01:00
GitHub
1d66657e6d Update lockfile.json 2021-12-06 22:52:00 +01:00
Stephan Seitz
cd6aabb964 ci: use Neovim v0.6.0 2021-12-06 22:34:30 +01:00
GitHub
8324a4ce01 Update lockfile.json 2021-12-06 22:18:45 +01:00
Jirgn
f998c9c423 fix(fusion): update lockfile 2021-12-06 21:51:53 +01:00
Jirgn
f51aa0b75e feat(fusion): update tests 2021-12-06 21:51:53 +01:00
Stephan Seitz
5684389a27 ci: open PRs to update README 2021-12-06 21:29:50 +01:00
Stephan Seitz
e6eeda7da9 rust(highlights): fix highlighting of char_literal 2021-12-06 21:20:58 +01:00
Chad Condon
0004d7552f Apply cpp to arduino 2021-12-06 21:16:27 +01:00
Stephan Seitz
913b72d60d docs: remove advice to use 0.5-compat
0.5-compat branch was not actively maintained and nvim-treesitter
also runs with stable versions. We should be able to maintain
compatibility with latest stable by fall-back implementations in case
there should be a breaking change.
2021-12-06 20:57:50 +01:00
Dawid Zych
d6a0a26b85 OCaml string format specifiers
For format specifiers use @string.special instead of
@punctuation.special.
2021-12-02 16:56:58 +01:00
silenc3r
acf0c0f6a1 OCaml use @constant.builtin for built in constants 2021-12-01 19:38:36 +01:00
GitHub
8d1547f0bc Update lockfile.json 2021-12-01 00:02:11 +01:00