From e9bf8a66ac71e918b30250a26bab6feba686d6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20B=C5=82achut?= Date: Thu, 30 Jul 2020 10:53:13 +0200 Subject: [PATCH] small refactor IncompleteBlock.kt --- .../dev/blachut/svelte/lang/parsing/html/IncompleteBlock.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/blachut/svelte/lang/parsing/html/IncompleteBlock.kt b/src/main/java/dev/blachut/svelte/lang/parsing/html/IncompleteBlock.kt index 5bb29046..0c409136 100644 --- a/src/main/java/dev/blachut/svelte/lang/parsing/html/IncompleteBlock.kt +++ b/src/main/java/dev/blachut/svelte/lang/parsing/html/IncompleteBlock.kt @@ -17,8 +17,8 @@ sealed class IncompleteBlock { companion object { fun create(tagLevel: Int, token: IElementType, resultMarker: Marker, fragmentMarker: Marker): IncompleteBlock { + val outerMarker = resultMarker.precede() val innerMarker = resultMarker.precede() - val outerMarker = innerMarker.precede() return when (token) { SvelteTagElementTypes.IF_START -> IncompleteIfBlock(tagLevel, outerMarker, innerMarker, fragmentMarker) SvelteTagElementTypes.EACH_START -> IncompleteEachBlock(tagLevel, outerMarker, innerMarker, fragmentMarker)