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
nsfisis
4d53ee5c05
highlights(php): improve highlight for attributes
2022-05-13 18:46:32 +02:00
Stephan Seitz
a4f9539a0c
highlights(cpp): make "::" @punctuation.delimiter
...
Fixes #2902
2022-05-07 13:30:36 +02:00
Pau Ruiz Safont
09efcdb049
highlights(ocaml): highlight units as such
...
Units were shadowed by the punctuation highlights in all situations.
Restrict the context where parentheses are highlighted as punctuation so
() can be highlighted as constants.
Signed-off-by: Pau Ruiz Safont <unduthegun@gmail.com>
2022-05-06 10:31:12 +02:00
Nick Pezza
bcf091d865
Add embedded template to support ERB files
2022-05-05 01:34:59 +02:00
Thomas Vigouroux
6619432dd3
feat(vim): add support for const
2022-05-01 19:21:40 +02:00
Santos Gallegos
132405f18f
Python: highlight raise from statement
2022-05-01 10:06:13 +02:00
francisco souza
1d5e4f3aa1
feat(proto): add parser
...
Related to #2307 .
2022-04-28 00:05:57 +02:00
Graham Bates
e49396bee1
Add additional m68k queries
2022-04-27 16:54:38 +02:00
Graham Bates
fa6c6f3535
Use correct type for labels
2022-04-27 16:54:38 +02:00
Graham Bates
d0eb99cdee
Remove query for interpolated macro arg
...
No `embedded` mapping available in nvim-treesitter. The previous query
to `variable.builtin` will work fine in this context too.
2022-04-27 16:54:38 +02:00
Graham Bates
7a01241ba6
feat: add m68k parser and queries
2022-04-27 16:54:38 +02:00
Michael Hoffmann
82e43748cf
indent(hcl): fix function calls
2022-04-25 23:36:36 +02:00