Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
commit
b5946751b8
1 changed files with 5 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
# included from sigmatch.nim
|
||||
|
||||
import algorithm
|
||||
import algorithm, sequtils
|
||||
|
||||
const
|
||||
sep = '\t'
|
||||
|
|
@ -71,7 +71,10 @@ template wholeSymTab(cond, section: expr) {.immediate.} =
|
|||
var isLocal = true
|
||||
for scope in walkScopes(c.currentScope):
|
||||
if scope == c.topLevelScope: isLocal = false
|
||||
for item in items(scope.symbols):
|
||||
var entries = sequtils.toSeq(items(scope.symbols))
|
||||
sort(entries) do (a,b: PSym) -> int:
|
||||
return cmp(a.name.s, b.name.s)
|
||||
for item in entries:
|
||||
let it {.inject.} = item
|
||||
if cond:
|
||||
SuggestWriteln(SymToStr(it, isLocal = isLocal, section))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue