nvim-treesitter / playground

Treesitter playground integrated into Neovim
Apache License 2.0
897 stars 47 forks source link

Error when using an invalid predicate #86

Closed smackesey closed 2 years ago

smackesey commented 2 years ago

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