Skip to content

Commit 9c6f815

Browse files
committed
adjust test from the scanner
The reason we get `class` is because the pre-process step for Svelte files will replace `class:` with `class `, this means that the input looks like: ```diff - <div class:px-4='condition'></div> + <div class px-4='condition'></div> ``` The reason we _don't_ get the `div` anymore, is because it's preceded by an invalid boundary character (`<`) and therefore we skip ahead to the next valid boundary character even though `div` on its own is a perfectly valid candidate.
1 parent 9738243 commit 9c6f815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxide/tests/scanner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ mod scanner {
340340
candidates,
341341
vec![
342342
"bool",
343+
"class",
343344
"condition",
344-
"div",
345345
"font-bold",
346346
"md:flex",
347347
"px-4",

0 commit comments

Comments
 (0)