implements module grouping for the import statement
This commit is contained in:
parent
2bb49136de
commit
4e481cc316
4 changed files with 37 additions and 14 deletions
|
|
@ -216,8 +216,8 @@ when defined(nimfix):
|
|||
# when we cannot find the identifier, retry with a changed identifer:
|
||||
proc altSpelling(x: PIdent): PIdent =
|
||||
case x.s[0]
|
||||
of 'A'..'Z': result = getIdent(toLower(x.s[0]) & x.s.substr(1))
|
||||
of 'a'..'z': result = getIdent(toLower(x.s[0]) & x.s.substr(1))
|
||||
of 'A'..'Z': result = getIdent(toLowerAscii(x.s[0]) & x.s.substr(1))
|
||||
of 'a'..'z': result = getIdent(toLowerAscii(x.s[0]) & x.s.substr(1))
|
||||
else: result = x
|
||||
|
||||
template fixSpelling(n: PNode; ident: PIdent; op: untyped) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue