Skip to content

Commit e08682f

Browse files
committed
Update PartialParser.ml
1 parent 9d543d5 commit e08682f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

analysis/src/PartialParser.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ let findCompletable text offset =
176176
| '@' -> Some (Cdecorator (suffix i))
177177
| 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '.' | '_' -> loop (i - 1)
178178
| ' ' when i = offset - 1 -> (
179+
(* autocomplete with no id: check if inside JSX *)
179180
match findJsxContext text (offset - 1) with
180181
| None -> None
181182
| Some componentName ->

0 commit comments

Comments
 (0)