Treesitter's query patterns are precise, but they can be overly verbose. It would be valuable to support syntax like:
`interface{}` { @ = "any" }
which would match a type node that looks like interface{}. There is a lot of ambiguity in how interface{} would end up being parsed, and so disambiguation is the crux of success.
Treesitter's query patterns are precise, but they can be overly verbose. It would be valuable to support syntax like:
which would match a type node that looks like
interface{}. There is a lot of ambiguity in howinterface{}would end up being parsed, and so disambiguation is the crux of success.