nvim-treesitter/queries/v/indents.scm
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

18 lines
255 B
Scheme

[(import_declaration
(const_declaration)
(var_declaration)
(type_declaration)
(literal_value)
(type_initializer)
(block)
(map)
(call_expression)
(parameter_list))]
@indent
[ "}"]
@branch
(parameter_list ")" @branch)
(comment) @ignore