bugfix: invalid indentation for 'else' is detected; optional indentation for 'if' expressions
This commit is contained in:
parent
e362cbbfd7
commit
c682a1da2b
4 changed files with 36 additions and 3 deletions
|
|
@ -1024,7 +1024,7 @@ proc getStrOrChar*(a: PNode): string =
|
|||
|
||||
proc isGenericRoutine*(s: PSym): bool =
|
||||
case s.kind
|
||||
of skProc, skTemplate, skMacro, skIterator:
|
||||
of skProc, skTemplate, skMacro, skIterator, skMethod:
|
||||
result = s.ast != nil and s.ast[genericParamsPos].kind != nkEmpty
|
||||
else: nil
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue