playground icon indicating copy to clipboard operation
playground copied to clipboard

Error when using an invalid predicate

Open smackesey opened this issue 2 years ago • 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

smackesey avatar Jul 24 '22 13:07 smackesey