Skip to content

Commit fefeb92

Browse files
Adjust scanner test to previous changes
1 parent 58271e2 commit fefeb92

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • core/src/commonTest/kotlin/org/kobjects/parserlib/tokenizer

core/src/commonTest/kotlin/org/kobjects/parserlib/tokenizer/ScannerTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class ScannerTest {
3636
return Scanner(
3737
Lexer(
3838
input,
39-
RegularExpressions.WHITESPACE to null, // Don't report
40-
RegularExpressions.SYMBOL to TokenType.SYMBOL,
41-
RegularExpressions.IDENTIFIER to TokenType.IDENTIFIER,
42-
RegularExpressions.NUMBER to TokenType.NUMBER
39+
RegularExpressions.WHITESPACE to { null }, // Don't report
40+
RegularExpressions.SYMBOL to { TokenType.SYMBOL },
41+
RegularExpressions.IDENTIFIER to { TokenType.IDENTIFIER },
42+
RegularExpressions.NUMBER to { TokenType.NUMBER }
4343
),
4444
null)
4545
}

0 commit comments

Comments
 (0)