summary refs log tree commit diff stats
path: root/compiler/prettybase.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/prettybase.nim')
-rw-r--r--compiler/prettybase.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/prettybase.nim b/compiler/prettybase.nim
index eb0cf983d..e3c1e6ae9 100644
--- a/compiler/prettybase.nim
+++ b/compiler/prettybase.nim
@@ -8,11 +8,12 @@
 #
 
 import ast, msgs, strutils, idents
+from os import splitFile
 
 type
   TSourceFile* = object
     lines*: seq[string]
-    dirty*: bool
+    dirty*, isNimfixFile*: bool
     fullpath*: string
 
 var
@@ -26,7 +27,8 @@ proc loadFile*(info: TLineInfo) =
     gSourceFiles[i].lines = @[]
     let path = info.toFullPath
     gSourceFiles[i].fullpath = path
-    # we want to die here for EIO:
+    gSourceFiles[i].isNimfixFile = path.splitFile.ext == "nimfix"
+    # we want to die here for IOError:
     for line in lines(path):
       gSourceFiles[i].lines.add(line)