minor improvement for nim pretty
This commit is contained in:
parent
31db3aeade
commit
8925d0e103
4 changed files with 13 additions and 5 deletions
|
|
@ -90,10 +90,10 @@ proc beautifyName(s: string, k: TSymKind): string =
|
|||
result.add s[i]
|
||||
inc i
|
||||
|
||||
proc checkStyle*(info: TLineInfo, s: string, k: TSymKind) =
|
||||
proc checkStyle(info: TLineInfo, s: string, k: TSymKind) =
|
||||
let beau = beautifyName(s, k)
|
||||
if s != beau:
|
||||
message(info, errGenerated, "name should be: " & beau)
|
||||
message(info, hintName, beau)
|
||||
|
||||
proc checkDef*(n: PNode; s: PSym) =
|
||||
# operators stay as they are:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue