From efe0a2800b210db2f1b06ea9caa1245cc9063c7f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 3 Jun 2022 22:18:38 +0200 Subject: [PATCH] Add comment about 'locals' queries limitations This is not enough of an issue to avoid using the functionality however, for example variable declarations are thankfully not affected by this issue, since they *must* be declared before their use. --- queries/locals.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/queries/locals.scm b/queries/locals.scm index f4ca3de..70baf87 100644 --- a/queries/locals.scm +++ b/queries/locals.scm @@ -1,3 +1,9 @@ +; See this issue [1] for support for "lazy scoping" which is somewhat needed +; for Tiger semantics (e.g: one can call a function before it has been defined +; top-to-bottom). +; +; [1]: https://github.com/tree-sitter/tree-sitter/issues/918 + ; Scopes {{{ [ (for_expression)