Commit graph

2738 commits

Author SHA1 Message Date
Alex Pinkus
556388b069
feat(swift): compile the grammar from the main branch (#3068)
The `with-generated-files` branch uses ABI 13 and therefore doesn't
benefit from the ABI 14 speed improvements.
2022-06-26 20:18:22 +02:00
Matthias Deiml
002084b1be
feat(markdown)!: switch to split parser (#3048)
* switch to split markdown parser with separate block and inline parsers to improve performance
* add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212)
* split markdown queries into block and inline ones and add the injection for inline into block grammar
* add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory)

BREAKING CHANGE: downstream queries need to be adapted to new parser
2022-06-26 18:02:29 +02:00
Stephan Seitz
d810c38634 Chore: remove prefix from parser "location" property
This was very confusing when using the location property as it
always had to start with "tree-sitter-<lang>" for no real reason.
2022-06-25 12:01:22 +02:00
kiyan
74ec4e1d5c fix(haskell): highlight exp_name as function in infix operations 2022-06-25 11:43:11 +02:00
GitHub
6284629a45 Update lockfile.json 2022-06-25 11:18:37 +02:00
Janfel
881b932893 highlights(lua): use #eq? instead of #match?
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2022-06-24 20:27:58 +02:00
Janfel
8d43730388 highlights(lua): highlight only self as self
Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
2022-06-24 20:27:58 +02:00
GitHub
5043db3db5 Update lockfile.json 2022-06-24 17:12:21 +02:00
Cameron
16abfdc11c Update highlights.scm
Adds `undef` and `redo` keywords.

https://docs.ruby-lang.org/en/2.4.0/syntax/miscellaneous_rdoc.html#label-undef
https://docs.ruby-lang.org/en/2.4.0/syntax/control_expressions_rdoc.html#label-redo+Statement
2022-06-24 17:03:41 +02:00
GitHub
3cd45c302a Update lockfile.json 2022-06-24 10:28:59 +02:00
GitHub
158009d873 Update lockfile.json 2022-06-24 00:33:35 +02:00
Christian Clason
ee2dcc1cbe docs: minimal supported tree-sitter version
Some parsers are built with ABI 14, which was introduced in tree-sitter 0.20.3.
2022-06-24 00:03:39 +02:00
GitHub
f5aa00d673 Update lockfile.json 2022-06-23 09:08:28 +02:00
Jonathan Lopez
238532fe82 Simplify inline conceal 2022-06-22 13:56:11 +02:00
Jonathan Lopez
536f4294f6 Refactor markdown conceal code 2022-06-22 13:56:11 +02:00
Jonathan Lopez
778bfc337a Conceal markdown links 2022-06-22 13:56:11 +02:00
GitHub
d4ca4eb234 Update lockfile.json 2022-06-22 08:53:35 +02:00
github-actions[bot]
8eccd820af
Update lockfile.json (#3045)
Co-authored-by: GitHub <noreply@github.com>
2022-06-20 21:03:10 +00:00
Duncan McDougall
901ffe1a36
Add support for custom parser install locations #2959 (#3031) 2022-06-20 22:50:07 +02:00
GitHub
37b9a2971f Update lockfile.json 2022-06-20 09:00:18 +02:00
GitHub
cb129ebe41 Update lockfile.json 2022-06-19 22:25:25 +02:00
Github Actions
347aaa9589 Update README 2022-06-19 22:14:08 +02:00
Santos Gallegos
96ee5b5382 Help: update highlights
- A hotlink on vimdoc is `|foo|`.
  Which is a reference to part of a document,
  not a URI.
- (argument) wasn't being highlighted,
  wasn't sure about the best hl group for this,
  but `@parameter` seems the obvious one?
2022-06-19 22:11:42 +02:00
Brian Albert Monroe
e68ea36745 fix: Add rnoweb to ALLOWED_INSTALLATION_FAILURES
As per the request from @theHamsta in #2934
2022-06-19 21:45:19 +02:00
Brian Albert Monroe
7075c6b63a rnoweb: Use new inline/chunk distinction 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
edff301949 rnoweb: Add folding queries for renv 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
8cb1fdf4bf Make rnoweb injects combined
This helps with breaking apart latex environments
2022-06-19 21:45:19 +02:00
Brian Albert Monroe
d0d7f32b71 Update the readme 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
23ca66d8ca Add rnoweb to the parsers.lua file 2022-06-19 21:45:19 +02:00
Brian Albert Monroe
575fe65147 Add rnoweb queries 2022-06-19 21:45:19 +02:00
GitHub
6ad1176e39 Update lockfile.json 2022-06-19 18:25:02 +02:00
Github Actions
78466dc62d Update README 2022-06-19 18:16:07 +02:00
Christian Clason
919da0d7a8 docs(swift): list alex-pinkus as maintainer 2022-06-19 15:02:47 +02:00
GitHub
57b052e020 Update lockfile.json 2022-06-19 14:27:01 +02:00
Christian Clason
c95496d8d6
feat(swift): update parser and queries to 0.3.0 (#3035)
also port upstream query changes
2022-06-19 14:18:16 +02:00
GitHub
5c36470744 Update lockfile.json 2022-06-18 11:19:30 +02:00
GitHub
22fdb251a2 Update lockfile.json 2022-06-17 09:08:27 +02:00
GitHub
78f36bbc58 Update lockfile.json 2022-06-16 10:12:33 +02:00
GitHub
518e27589c Update lockfile.json 2022-06-14 22:50:46 +02:00
Github Actions
5f8ca1c08f Update README 2022-06-14 22:38:14 +02:00
Phelipe Teles
589d18ab68 test(indents/yaml): add tests 2022-06-14 22:37:52 +02:00
Phelipe Teles
8bd07c88b6 fix(indents/yaml): only indent mapping pair if value is a block
This improves the following situation, in which '|' is the cursor position:

```yaml
- key1: value1
  key2: value2|
```

Before this commit, by pressing Enter would result in this indentation:

```yaml
- key1: value1
  key2: value2
    |
```

Which is less convenient than this:

```yaml
- key1: value1
  key2: value2
  |
```
2022-06-14 22:37:52 +02:00
Phelipe Teles
1a49d068a7 fix(indents/yaml): improve error handling
This helps to solve the first issue reported at #1377.

The problem is that the line loses its indentation when we start
inserting a new mapping pair (specifically, when we enter the character
":").

The issue seems to be solved by auto indenting ERROR nodes.
2022-06-14 22:37:52 +02:00
Phelipe Teles
5e8ec943f8 fix(indents/yaml): indent sequence/list items
This solves the second issue reported at #1377, in which the cursor
would not be aligned with the line "key2: value2" when entering a new
line below it.

```yaml
- key1: value1
  key2: value2
```
2022-06-14 22:37:52 +02:00
Ryan Barth
e6ff4c8084 fix: keep cls variable highlighting consistent in class methods 2022-06-14 22:35:14 +02:00
Bruno BELANYI
dc23e86e47 fix(tiger): remove duplicate keywords 2022-06-14 22:34:03 +02:00
Bruno BELANYI
fcba0368a6 fix(tiger): add 'ft' modeline in highlight corpus 2022-06-14 22:34:03 +02:00
Bruno BELANYI
b8e3b03748 fix(tiger): adjust invalid queries 2022-06-14 22:34:03 +02:00
Bruno BELANYI
6e3f888dc7 test(tiger): import upstream tests 2022-06-14 22:34:03 +02:00
Bruno BELANYI
ef385991b6 feat(tiger): initial support 2022-06-14 22:34:03 +02:00