diff options
| author | Harry Gallagher <harrygallagher4@gmail.com> | 2022-03-10 20:52:39 -0600 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-03-12 23:03:16 +0100 |
| commit | a0c0269cbfc8a52fa2d400509f0d3402453c7b06 (patch) | |
| tree | 4236f615ffd714a536699991c11240e0ebf08f62 | |
| parent | fix(lua): restore precedence for @variable.builtin and @constant.builtin (diff) | |
| download | nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar.gz nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar.bz2 nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar.lz nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar.xz nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.tar.zst nvim-treesitter-a0c0269cbfc8a52fa2d400509f0d3402453c7b06.zip | |
properly bind function names to the parent scope
| -rw-r--r-- | queries/fennel/locals.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/queries/fennel/locals.scm b/queries/fennel/locals.scm index 31e52038b..3018732f9 100644 --- a/queries/fennel/locals.scm +++ b/queries/fennel/locals.scm @@ -14,8 +14,10 @@ "while" "if" "when" "do" "collect" "icollect" "accumulate") ) -(fn name: (symbol) @definition.function) -(lambda name: (symbol) @definition.function) +(fn name: (symbol) @definition.function + (#set! definition.function.scope "parent")) +(lambda name: (symbol) @definition.function + (#set! definition.function.scope "parent")) ; TODO: use @definition.parameter for parameters (binding (symbol) @definition.var) |
