From 75342968e23a56d4156a6c845517ea7491838b98 Mon Sep 17 00:00:00 2001 From: kaashyapan <25821867+kaashyapan@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:08:21 +0530 Subject: [PATCH] update fsharp tree-sitter (#8024) --- languages.toml | 2 +- runtime/queries/fsharp/locals.scm | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/fsharp/locals.scm diff --git a/languages.toml b/languages.toml index dc07bb2b..2477f1ad 100644 --- a/languages.toml +++ b/languages.toml @@ -2692,7 +2692,7 @@ language-servers = ["fsharp-ls"] [[grammar]] name = "fsharp" -source = { git = "https://github.com/kaashyapan/tree-sitter-fsharp", rev = "1b5a315e003024db6181744f1d25b8f525732665" } +source = { git = "https://github.com/kaashyapan/tree-sitter-fsharp", rev = "18da392fd9bd5e79f357abcce13f61f3a15e3951" } [[language]] name = "t32" diff --git a/runtime/queries/fsharp/locals.scm b/runtime/queries/fsharp/locals.scm new file mode 100644 index 00000000..aa36755e --- /dev/null +++ b/runtime/queries/fsharp/locals.scm @@ -0,0 +1,25 @@ +; Scopes +;------- + +[ + (ce_expression) + (module_defn) + (for_expression) + (do_expression) + (fun_expression) + (function_expression) + (try_expression) + (match_expression) + (elif_expression) + (if_expression) +] @local.scope + +; Definitions +;------------ + +(function_or_value_defn) @local.definition + +; References +;----------- + +(identifier) @local.reference