Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

450 B
Raw Blame
; Adapted from nvim-treesitter queries/haskell/locals.scm (Apache-2.0):
; captures the bound names (not whole declarations) and adds scopes.

(function
  name: (variable) @local.definition.function
  (#set! definition.function.scope "parent"))

(bind
  name: (variable) @local.definition.var)

(pattern/variable) @local.definition.parameter

(expression/variable) @local.reference

[
  (function)
  (lambda)
  (let_in)
  (alternative)
] @local.scope