mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
Merge pull request #9869 from nim-lang/timotheecour-patch-3
Update parseutils.nim
This commit is contained in:
@@ -129,8 +129,8 @@ proc parseIdent*(s: string, ident: var string, start = 0): int =
|
||||
result = i-start
|
||||
|
||||
proc parseIdent*(s: string, start = 0): string =
|
||||
## parses an identifier and stores it in ``ident``.
|
||||
## Returns the parsed identifier or an empty string in case of an error.
|
||||
## parses an identifier and returns it or an empty string in
|
||||
## case of an error.
|
||||
result = ""
|
||||
var i = start
|
||||
if i < s.len and s[i] in IdentStartChars:
|
||||
|
||||
Reference in New Issue
Block a user