Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tree-sitter-grammars/tree-sitter-meson

Meson grammar for tree-sitter
https://github.com/tree-sitter-grammars/tree-sitter-meson

meson parser tree-sitter

Last synced: 18 days ago
JSON representation

Meson grammar for tree-sitter

Awesome Lists containing this project

README

        

# tree-sitter-meson

Treesitter for meson build

It just works, for highlight in neovim

![image](./images/highlighshow.png)

### Known bug

if comment in some where, the Treesitter will break

## Files

### base.js

about the base types and command

### closue.js

if else and loop

### operation.js

operate

## FIXME

Better handle of comment, maybe need scanner.c, but I am not good at c

## Help

I need more tests

please give the issues, I will try to fix

## TODO

Take it as a reference and make a new one

https://github.com/dcbaker/meson-plus-plus/blob/main/src/frontend/parser.yy

I don't think it can be used to make lsp or format.. It is bad