File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ let findCallFromArgument text offset =
52
52
loop ~i: offset ~n Closed:0
53
53
54
54
(* skip A or #A if present *)
55
- let skipOptVariant text i =
56
- prerr_endline " skipOptIdent" ;
55
+ let rec skipOptVariant text i =
57
56
if i > 0 then
58
57
match text.[i] with
59
58
| 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' ->
60
59
let i = startOfLident text i - 1 in
61
60
let i =
62
- if i > 0 then match text.[i] with '#' -> i - 1 | _ -> i else i
61
+ if i > 0 then match text.[i] with '#' | '%' -> i - 1 | _ -> i else i
63
62
in
64
63
i
64
+ | '%' -> skipOptVariant text (i - 1 )
65
65
| _ -> i
66
66
else i
67
67
Original file line number Diff line number Diff line change @@ -37,6 +37,6 @@ let y = 44
37
37
38
38
//^com <M prop=`before${foo}` k
39
39
40
- //<M prop=module(@foo Three: X_int) k
40
+ //^com <M prop=module(@foo Three: X_int) k
41
41
42
- //<M prop=%bs.raw("1") k
42
+ //^com <M prop=%bs.raw("1") k
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ Complete tests/src/Jsx.res 11:2
71
71
}]
72
72
73
73
Complete tests/src/Jsx.res 18:2
74
- skipOptIdent
75
74
[{
76
75
"label": "key",
77
76
"kind": 4,
@@ -81,7 +80,6 @@ skipOptIdent
81
80
}]
82
81
83
82
Complete tests/src/Jsx.res 20:2
84
- skipOptIdent
85
83
[{
86
84
"label": "key",
87
85
"kind": 4,
@@ -91,7 +89,6 @@ skipOptIdent
91
89
}]
92
90
93
91
Complete tests/src/Jsx.res 22:2
94
- skipOptIdent
95
92
[{
96
93
"label": "key",
97
94
"kind": 4,
@@ -101,7 +98,6 @@ skipOptIdent
101
98
}]
102
99
103
100
Complete tests/src/Jsx.res 24:2
104
- skipOptIdent
105
101
[{
106
102
"label": "key",
107
103
"kind": 4,
@@ -164,3 +160,21 @@ Complete tests/src/Jsx.res 36:2
164
160
"documentation": null
165
161
}]
166
162
163
+ Complete tests/src/Jsx.res 38:2
164
+ [{
165
+ "label": "key",
166
+ "kind": 4,
167
+ "tags": [],
168
+ "detail": "string",
169
+ "documentation": null
170
+ }]
171
+
172
+ Complete tests/src/Jsx.res 40:2
173
+ [{
174
+ "label": "key",
175
+ "kind": 4,
176
+ "tags": [],
177
+ "detail": "string",
178
+ "documentation": null
179
+ }]
180
+
You can’t perform that action at this time.
0 commit comments