Compare commits
2 commits
b04cd92189
...
0fcd980d86
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fcd980d86 | |||
| b7e0ae80ea |
2 changed files with 43 additions and 0 deletions
14
queries/locals.scm
Normal file
14
queries/locals.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(module
|
||||
(property
|
||||
field: (identifier) @local.definition.parameter))
|
||||
|
||||
(map_expression
|
||||
(property
|
||||
field: (identifier) @local.definition.field))
|
||||
|
||||
(assignment
|
||||
left: (identifier) @local.definition.var)
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
; vim: sw=2 foldmethod=marker
|
||||
|
|
@ -197,6 +197,35 @@ foo = select(some_unknown_type("CONDITION"), {
|
|||
(interpreted_string_literal))
|
||||
(ERROR))
|
||||
|
||||
================================================================================
|
||||
Select (mutiple type arguments)
|
||||
================================================================================
|
||||
|
||||
foo = select(release_variable("ONE", "TWO"), {
|
||||
"d": "d2",
|
||||
default: "f2",
|
||||
})
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(assignment
|
||||
(identifier)
|
||||
(operator)
|
||||
(select_expression
|
||||
(select_value
|
||||
(selection_type)
|
||||
(ERROR
|
||||
(interpreted_string_literal))
|
||||
(interpreted_string_literal))
|
||||
(select_cases
|
||||
(select_case
|
||||
(interpreted_string_literal)
|
||||
(interpreted_string_literal))
|
||||
(select_case
|
||||
(default)
|
||||
(interpreted_string_literal))))))
|
||||
|
||||
================================================================================
|
||||
Select as an identifier
|
||||
================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue