Skip to content

Commit

Permalink
Fix doc: '\c' '\L' in lexbase.nim (#23781)
Browse files Browse the repository at this point in the history
- In lexbase.nim, `\c` `\L` were rendered as `c` `L`.
  • Loading branch information
litlighilit committed Jul 1, 2024
1 parent a557e5a commit 43ee545
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pure/lexbase.nim
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ proc fillBaseLexer(L: var BaseLexer, pos: int): int =
result = 0

proc handleCR*(L: var BaseLexer, pos: int): int =
## Call this if you scanned over '\c' in the buffer; it returns the
## Call this if you scanned over `'\c'` in the buffer; it returns the
## position to continue the scanning from. `pos` must be the position
## of the '\c'.
## of the `'\c'`.
assert(L.buf[pos] == '\c')
inc(L.lineNumber)
result = fillBaseLexer(L, pos)
Expand All @@ -115,9 +115,9 @@ proc handleCR*(L: var BaseLexer, pos: int): int =
L.lineStart = result

proc handleLF*(L: var BaseLexer, pos: int): int =
## Call this if you scanned over '\L' in the buffer; it returns the
## Call this if you scanned over `'\L'` in the buffer; it returns the
## position to continue the scanning from. `pos` must be the position
## of the '\L'.
## of the `'\L'`.
assert(L.buf[pos] == '\L')
inc(L.lineNumber)
result = fillBaseLexer(L, pos) #L.lastNL := result-1; // BUGFIX: was: result;
Expand Down

0 comments on commit 43ee545

Please sign in to comment.