diff options
author | lit <litlighilit@foxmail.com> | 2024-07-02 02:47:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 20:47:39 +0200 |
commit | 43ee545789f94ca36c9f48012f0d1c8682b39756 (patch) | |
tree | 57f334f5cbb64b1c283be2ed285ea64b00702f34 | |
parent | a557e5a341edcba90a08b6bc07d1dd701ed29c81 (diff) | |
download | Nim-43ee545789f94ca36c9f48012f0d1c8682b39756.tar.gz |
Fix doc: '\c' '\L' in lexbase.nim (#23781)
- In lexbase.nim, `\c` `\L` were rendered as `c` `L`.
-rw-r--r-- | lib/pure/lexbase.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/lexbase.nim b/lib/pure/lexbase.nim index 1b6b2b3a2..1efd97b24 100644 --- a/lib/pure/lexbase.nim +++ b/lib/pure/lexbase.nim @@ -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) @@ -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; |