Commit graph

1206 commits

Author SHA1 Message Date
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
Michael Hoffmann
b1e8b61a94 indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
2022-04-24 18:57:30 +02:00
Tomas Sandven
6d072a6e54 Fix YANG indentation for extension statements 2022-04-23 15:49:53 +02:00
Tomas Sandven
71a4a13ed1 Add aligned indents for multi-line strings 2022-04-23 15:49:53 +02:00
Tomas Sandven
f51d4180c6 Add indent queries for YANG 2022-04-23 15:49:53 +02:00
Akin Sowemimo
eb0eb67bc5 fix(go): reduce indent after },) 2022-04-18 14:11:02 +02:00
Stephan Seitz
4542402e34 highlights(java): add support for text_blocks 2022-04-16 23:23:19 +02:00
Thomas Vigouroux
386f80e4d7 feat(vim): highlight unknown commands 2022-04-16 20:32:35 +02:00
Sergio Alejandro Vargas
394e7f8048 highlights(julia): Update literals
Add queries for:
- Character literals
- Escape sequences
- NaNs, Infs and missing

Remove highlight to identifiers in coefficient expressions.

Update other literals to match grammar.
2022-04-16 00:28:00 +02:00
Stephan Seitz
436d2ebe24 highlights(markdown): fix conceal capture 2022-04-15 18:47:53 +02:00
Stephan Seitz
f0398b7329 highlights(markdown): conceal link markers 2022-04-15 18:42:53 +02:00
Stephan Seitz
2bedaeb732 highlights(markdown): conceal emphasis_delimiter 2022-04-15 18:42:53 +02:00
Stephan Seitz
ade64b4459 highlights(markdown): add conceal to fenced code blocks 2022-04-15 18:42:53 +02:00
Christian Clason
db0e519291 latex: capture math env contents 2022-04-15 15:04:29 +02:00
Christian Clason
b2807559e3 julia: update queries to parser changes 2022-04-15 12:15:18 +02:00
Christian Clason
94f19cad29 latex: update queries
Make use of parser updates
* add `\{re}newenvironment`
* add `\DeclarePairedDelimiter{X}`
* add `\title` and `\author`
* add optional arguments to sectioning commands
* use builtin nodes for math environments
2022-04-14 12:02:20 +02:00
Himujjal Upadhyaya
0127bef03d svelte query and lockfile updated 2022-04-13 09:26:26 +02:00
Konrad Bochnia
cc83e23a2a fix: remove ftdetect, Fix struct highlight for wgsl 2022-04-11 23:16:19 +02:00
Konrad Bochnia
1a58c71b73 Add WGSL parser 2022-04-11 23:16:19 +02:00
kraftwerk28
93de9cc7a0 Add c injection for cgo comments 2022-04-11 10:52:34 +02:00
6cdh
7fffab173c Fix nvim-treesitter CI 2022-04-10 13:51:59 +02:00
6cdh
2ecb4022f4 Added folds, injections 2022-04-10 13:51:59 +02:00
6cdh
4fa6fd7725 Added scheme highlights 2022-04-10 13:51:59 +02:00
Stephan Seitz
a5728b36e4 highlights(json): highlight ":"
Fixes #2703
2022-04-10 12:51:09 +02:00
virchau13
e3adb39586 feat: add curly interpolation support for astro 2022-04-09 14:24:07 +02:00
Ferdinand Ratajczak
74a455c01e fixup! highlights(python): highlight exception keywords 2022-04-07 23:24:18 +02:00
Ferdinand Ratajczak
1fb68f76af highlights(python): highlight exception keywords 2022-04-07 23:24:18 +02:00
virchau13
f62fb16bba feat: add astro 2022-04-07 16:04:21 +02:00