Skip to content

Commit

Permalink
fix(typo): out of place indent in lexer api guide
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 authored Jan 22, 2025
1 parent ed29ad6 commit 013754b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api-guide/token/Lexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ the latter example, as the break characters may then only appear between digits.

```scala mdoc:height=2
val lexerWithBreak = new Lexer(LexicalDesc.plain.copy(
numericDesc = NumericDesc.plain.copy(
literalBreakChar = BreakCharDesc.Supported('_', allowedAfterNonDecimalPrefix = true))
))
numericDesc = NumericDesc.plain.copy(
literalBreakChar = BreakCharDesc.Supported('_', allowedAfterNonDecimalPrefix = true))
))
val withBreak = lexerWithBreak.lexeme.signed.number
withBreak.parse("1_000")
withBreak.parse("1_")
Expand Down

0 comments on commit 013754b

Please sign in to comment.