Skip to content

Another meson tree sitter #7

Closed
Closed
@gdamore

Description

@gdamore

I just discovered this implementation of a meson tree-sitter, and unfortunately I discovered this after I implemented my own at

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

Comparing, it looks like your has at least one bug with break and continue (which is also a bug in the documented grammar for meson). I think my version is probably superior to yours -- it's definitely superior to the one at https://github.com/Decodetalkers/tree-sitter-meson -- which is the one I am referring to in the README.

I had no idea that I was creating a third grammar for meson lol.

Anyway, had I known about yours, I'd probably have just submitted a PR here to your grammar. Having said that, I'm going to keep mine around for the moment -- it does have some richer queries... for the record the way I found this grammar was when I went into Helix thinking to add meson and discovering this was already there.

I'm going to propose helix switch to mine in a PR, mostly because of the bug fixes and richer queries -- I hope you don't mind. If you would prefer instead to update this grammar, with the relevant fixes, that would be fine too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions