Skip to content

Commit 856fcdc

Browse files
committed
Add test for recently fixed Kotlin parse.
1 parent 0e01381 commit 856fcdc

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: kotlin
2+
command:
3+
version: 7
4+
spokenForm: change call
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: functionCall}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |-
15+
fun main() {
16+
val s = "test"
17+
val l = with (s) { length }
18+
println(l)
19+
}
20+
selections:
21+
- anchor: {line: 2, character: 14}
22+
active: {line: 2, character: 14}
23+
marks: {}
24+
finalState:
25+
documentContents: |-
26+
fun main() {
27+
val s = "test"
28+
val l =
29+
println(l)
30+
}
31+
selections:
32+
- anchor: {line: 2, character: 12}
33+
active: {line: 2, character: 12}

queries/kotlin.scm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@
509509
(annotated_lambda) @argumentOrParameter
510510
)
511511

512-
;; Note: trailing lambda mixed with regular arguments doesn't work due to bad tree sitter parse.
513512
(call_expression
514513
(call_suffix) @argumentOrParameter.iteration
515514
) @argumentOrParameter.iteration.domain

0 commit comments

Comments
 (0)