diff options
author | Clyybber <darkmine956@gmail.com> | 2020-08-28 22:18:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 22:18:09 +0200 |
commit | 13e659cfec83eb3c2c3c2bbbf10d01ba59bc0d5b (patch) | |
tree | 6df6a9dfc3b5f0ba7f27452c8f84b55a957b73ba /tools | |
parent | f8c48fc1863a243718acf86b699baed1a5c1512e (diff) | |
download | Nim-13e659cfec83eb3c2c3c2bbbf10d01ba59bc0d5b.tar.gz |
Big compiler Cleanup (#14777)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/grammar_nanny.nim | 4 | ||||
-rw-r--r-- | tools/nimfind.nim | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/grammar_nanny.nim b/tools/grammar_nanny.nim index d07c2bf8c..397041559 100644 --- a/tools/grammar_nanny.nim +++ b/tools/grammar_nanny.nim @@ -16,8 +16,8 @@ proc checkGrammarFileImpl(cache: IdentCache, config: ConfigRef) = if stream != nil: declaredSyms.incl "section" # special case for 'section(RULE)' in the grammar var - L: TLexer - tok: TToken + L: Lexer + tok: Token initToken(tok) openLexer(L, f, stream, cache, config) # load the first token: diff --git a/tools/nimfind.nim b/tools/nimfind.nim index 05980d740..4ad5fbb4f 100644 --- a/tools/nimfind.nim +++ b/tools/nimfind.nim @@ -195,8 +195,7 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string; conf: ConfigRef) = of cmdArgument: let info = p.key.split(':') if info.len == 3: - let (dir, file, ext) = info[0].splitFile() - conf.projectName = findProjectNimFile(conf, dir) + conf.projectName = findProjectNimFile(conf, info[0].splitFile.dir) if conf.projectName.len == 0: conf.projectName = info[0] try: conf.m.trackPos = newLineInfo(conf, AbsoluteFile info[0], |