Compare commits
2 commits
0fcd980d86
...
b04cd92189
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | b04cd92189 | ||
Bruno BELANYI | 6d6d9fc03b |
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 (multiple 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…
Reference in a new issue