Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vala-lang/tree-sitter-vala

Vala grammar for tree-sitter (WIP)
https://github.com/vala-lang/tree-sitter-vala

tree-sitter vala

Last synced: 3 months ago
JSON representation

Vala grammar for tree-sitter (WIP)

Awesome Lists containing this project

README

        

tree-sitter-vala
----------------

## Workflow

You need the tree-sitter CLI. On Arch, install `tree-sitter`.

1. edit `grammar.js`
2. `tree-sitter generate`
3. `tree-sitter test`

You can use `tree-sitter parse ` and `tree-sitter highlight ` after
regenerating.

## Neovim integration

For a working neovim integration you need to install this grammar with

```
:TSInstall vala
```

And you need to install the [vala.vim](https://github.com/vala-lang/vala.vim) plugin to recognize the filetype.

For [vim-plug](https://github.com/junegunn/vim-plug) this would be:

```
Plug 'vala-lang/vala.vim'
```

Then install with

```
:PlugUpdate
```

For other plugin mangers consider the install steps will be different.