Use of "#lua-match?" predicate
mattmassicotte opened this issue · 2 comments
mattmassicotte commented
Hello!
I maintain https://github.com/ChimeHQ/SwiftTreeSitter, and have been working on supporting query predicates. By chance, I noticed that highlights.scm uses #lua-match?
. I was just wondering why, as opposed to just #match?
. It doesn't look like the regular expression requires any special handling.
Is there anything special going on here?
alex-pinkus commented
Nothing special going on there; whatever grammar I copied that rule from must have done the same thing. I don’t recall which one it was. Happy to accept a PR to change it.
mattmassicotte commented
Ok that's great! I was hoping you'd say that. PR forthcoming :)