diff options
author | Artem V L <luardev@gmail.com> | 2019-08-27 16:16:32 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-27 16:16:32 +0200 |
commit | d8177a398059334a7d36c1ba0d98b39516815edd (patch) | |
tree | ae2475806db88afef845741e95fd925074836cd3 /lib | |
parent | 8df745a42ed49533903e5e6034385c5815b47383 (diff) | |
download | Nim-d8177a398059334a7d36c1ba0d98b39516815edd.tar.gz |
Typos fixed, handleRefillChar() described (#12062)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/lexbase.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pure/lexbase.nim b/lib/pure/lexbase.nim index 11ec45a37..0ef4a147a 100644 --- a/lib/pure/lexbase.nim +++ b/lib/pure/lexbase.nim @@ -100,7 +100,7 @@ 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 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'. assert(L.buf[pos] == '\c') @@ -111,7 +111,7 @@ 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 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'. assert(L.buf[pos] == '\L') @@ -120,7 +120,8 @@ proc handleLF*(L: var BaseLexer, pos: int): int = L.lineStart = result proc handleRefillChar*(L: var BaseLexer, pos: int): int = - ## To be documented. + ## Call this if a terminator character other than a new line is scanned + ## at `pos`; it returns the position to continue the scanning from. assert(L.buf[pos] in L.refillChars) result = fillBaseLexer(L, pos) #L.lastNL := result-1; // BUGFIX: was: result; |