nvim-treesitter/playground

Error when using an invalid predicate

smackesey opened this issue · 0 comments

When I put the following query in the query editor with linting enabled, then change "#match?" to "#mtch?", I get a lua error (see screenshot). I would expect this to give a graceful lint error of invalid predicate.

(function_definition
  (parameters
    (typed_parameter
      (type
        (subscript
          (identifier) @value (#match? @value "^List|Mapping$")
          (identifier)? @subscript)))))

image