Commit graph

1245 commits

Author SHA1 Message Date
Access
bafa20df2b
add fold support to qml (#3132) 2022-07-07 18:16:34 +02:00
Access
4b5966c81a
add qmljs (#3126) 2022-07-07 16:33:47 +02:00
Kiyan
6f3fbb2622
fix(ecma): indent end for bracket (#3121) 2022-07-07 14:35:12 +02:00
MDeiml
f75e27c217 Use markdown metadata blocks for injection 2022-07-03 11:25:50 +02:00
Kiyan
372b007231
fix(haskell): priority 101 for infix function precedence over variable (#3085) 2022-07-01 15:47:28 +02:00
guijan
9832666cfa
highlights(c): highlight member-access as operator (#3096) 2022-07-01 15:47:11 +02:00
PolarMutex
b8459df74d
feat(beancount): support folding org headers (#3078)
requires beancount parser update

Co-authored-by: Brian Ryall <brian@brianryall.xyz>
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
2022-06-28 10:44:38 +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
kiyan
74ec4e1d5c fix(haskell): highlight exp_name as function in infix operations 2022-06-25 11:43:11 +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
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
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
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
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
575fe65147 Add rnoweb queries 2022-06-19 21:45:19 +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
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
b8e3b03748 fix(tiger): adjust invalid queries 2022-06-14 22:34:03 +02:00
Bruno BELANYI
ef385991b6 feat(tiger): initial support 2022-06-14 22:34:03 +02:00
Seth Barberee
b705435453
vim: add basic folding for if statements and functions (#2994) 2022-06-07 09:10:09 +02:00
Jackson Ludwig
b39840302c
injections(ecma): add injection for commented graphql template strings (#2987) 2022-06-05 11:50:48 +02:00
shirasaka
e4df4228b7 highlights(php): highlight readonly keyword 2022-06-04 17:53:59 +02:00
Sergio Alejandro Vargas
6a4eb4e1c3 feat(highlights/julia): make operators visible
See tree-sitter/tree-sitter-julia#34
2022-06-01 09:26:50 +02:00
Stephan Seitz
8c56988d79 highlights(c): highlight field_designator as @property 2022-05-29 11:11:10 +02:00
Minijackson
29b0ea8093 fix(nix): update parser and queries 2022-05-24 01:06:15 +02:00
Stephan Seitz
4da1d0702a highlights(vlang): add attribute_declaration and specialize some keywords 2022-05-21 13:48:58 +02:00
tami5
ad77a80813 feat: highlight string_interpolation identifiers
functions call work without issues
2022-05-21 13:48:58 +02:00
tami5
d039b4d0a4 chore: add more builtin variables 2022-05-21 13:48:58 +02:00
tami5
b34aadbcb3 chore: add $else keyword 2022-05-21 13:48:58 +02:00
tami5
08092ecc06 chore(vlang): rename set! > #set! 2022-05-21 13:48:58 +02:00
Stephan Seitz
c19d14f395 parser(vlang): fix location of remote repo 2022-05-21 13:48:58 +02:00
tami5
010f364295 feat(vlang): initial support
Add support for vlang filetypes.

- [ ] Highlight `C` as builtin variable. This is FFI in vlang land,
  where C act like extern and access c functions. The vlang parser does
  some extension between C function calls and arguments but I believe
  highlighting C as builtin variable is sufficient indicator for now. I
  tried to use offset! but failed. Any suggestions?
- [ ] Set up parser url. the vlang parser is located within [vls] repo. Is
  installing from nested repo supported? `tree_sitter_v/src/parser.c`?

[vls]: https://github.com/vlang/vls/tree/master/tree_sitter_v

cc @elianiva @theHamsta
2022-05-21 13:48:58 +02:00
Stephan Seitz
d605120dcc highlights(latex): only highlight command name, not whole command 2022-05-21 13:13:59 +02:00
Stephan Seitz
30b9ba1fef highlights(slint): highlight operators and more punctuation 2022-05-21 13:05:59 +02:00
Stephan Seitz
c9ebd16c28 python(folds): fold whole functions not only body 2022-05-15 19:14:52 +02:00
przepompownia
1cec3899f5 indents(php): @auto on comment and ERROR
Currently with
```vim
setlocal autoindent
setlocal smartindent
```
in `after/indent/php.vim` it allows correct indentation
inside PHP docblocks.
2022-05-15 14:52:43 +02:00
Stephan Seitz
a401f6ce7d highlights(cuda): add __grid_constant__ 2022-05-15 10:37:14 +02:00
William Mathewson
57f4dbd47b Use @definition.function for method & func definitions 2022-05-14 20:35:09 +02:00
William Mathewson
81dd6c988c Add method to definitions in ECMA locals
In Telescope, function declarations were being exposed in the selector,
but not method definitions which are also a form of function
declaration.
2022-05-14 20:35:09 +02:00
6cdh
b30a830c88
highlights(scheme): some fix (#2932)
* Add block comment
* Add λ highlight
2022-05-14 09:25:45 +02:00
Santos Gallegos
f1373051e5
Python: highlight future import (#2936)
* Python: highlight future import

* Use constant.builtin
2022-05-13 21:46:06 +00:00