diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2017-11-08 03:15:42 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2017-11-08 03:15:42 -0600 |
| commit | 79b62cde25fc2276a6e52c7bf2d1811d87e57e33 (patch) | |
| tree | bd50804bef01acadca39b86e781f17363d793de6 | |
| parent | aa11f813f22fb7e473248ba0a42cda48f672238e (diff) | |
| download | nimgen-79b62cde25fc2276a6e52c7bf2d1811d87e57e33.tar.gz nimgen-79b62cde25fc2276a6e52c7bf2d1811d87e57e33.zip | |
Remove -_. from import statements
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | .nimgen.nim.swp | bin | 0 -> 24576 bytes | |||
| -rwxr-xr-x | nimgen | bin | 253496 -> 0 bytes | |||
| -rw-r--r-- | nimgen.nim | 2 |
4 files changed, 3 insertions, 2 deletions
@@ -1,2 +1,3 @@ nimcache -*.exe
\ No newline at end of file +nimgen +*.exe diff --git a/.nimgen.nim.swp b/.nimgen.nim.swp Binary files differBinary files differnew file mode 100644 index 0000000..d726a7c --- /dev/null +++ b/.nimgen.nim.swp @@ -246,7 +246,7 @@ proc c2nim(fl, outfile, flags, ppflags: string, recurse, preproc, ctag, define: if recurse: var incls = getincls(file) for inc in incls: - incout &= "import " & inc.splitFile().name & "\n" + incout &= "import " & inc.splitFile().name.replace(re"[-_\.]", "") & "\n" c2nim(inc, getnimout(inc), flags, ppflags, recurse, preproc, ctag, define, compile, dynlib) var cfile = file |
