aboutsummaryrefslogtreecommitdiff
path: root/tools/autoformat.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tools/autoformat.nom')
-rwxr-xr-xtools/autoformat.nom3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/autoformat.nom b/tools/autoformat.nom
index acabefb..1c591a0 100755
--- a/tools/autoformat.nom
+++ b/tools/autoformat.nom
@@ -10,10 +10,11 @@ if (%args.1 is "-i"):
for %path in %args:
for file %filename in %path:
+ unless (%filename matches "%.nom$"): do next %filename
%formatted = ".."
#!/usr/bin/env nomsu -V\(Nomsu version)
\((parse (read file %filename) from %filename) as nomsu)
if %inplace:
write %formatted to file %filename
- ..else: say %formatted \ No newline at end of file
+ ..else: say %formatted