update fsharp tree-sitter (#8024)
This commit is contained in:
parent
22f4f313f1
commit
75342968e2
2 changed files with 26 additions and 1 deletions
|
@ -2692,7 +2692,7 @@ language-servers = ["fsharp-ls"]
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "fsharp"
|
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]]
|
[[language]]
|
||||||
name = "t32"
|
name = "t32"
|
||||||
|
|
25
runtime/queries/fsharp/locals.scm
Normal file
25
runtime/queries/fsharp/locals.scm
Normal file
|
@ -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
|
Loading…
Reference in a new issue