Skip to content

Commit b44828c

Browse files
committed
Fix issue with closing tag of nested components.
1 parent 228374c commit b44828c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

analysis/src/SemanticTokens.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ let emitLongident ?(backwards = false) ?(jsx = false)
128128
| _ -> ()
129129
in
130130
let segments = flatten [] lid in
131-
let segments = if backwards then List.rev segments else segments in
132131
if backwards then (
133132
let totalLength = segments |> String.concat "." |> String.length in
134133
if snd pos >= totalLength then

analysis/tests/src/expected/Parser.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Variable: children (78,16)->(78,25)
8585
Variable: make (78,8)->(78,12)
8686
Ldot: SomeComponent (84,9) Namespace
8787
Lident: Nested (84,23) Namespace
88-
Ldot: Nested (84,41) Namespace
89-
Lident: SomeComponent (84,48) Namespace
88+
Ldot: SomeComponent (84,41) Namespace
89+
Lident: Nested (84,55) Namespace
9090
Lident: div (84,32) JsxTag
9191

0 commit comments

Comments
 (0)