diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-21 14:43:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-21 14:44:26 -0700 |
| commit | ae4670bd8e0e45985e43402f246e4219cd29fcaa (patch) | |
| tree | 0c043c6b8aed0ebb7acf77b0817fe4ffd193cb38 /tools/autoformat.nom | |
| parent | 6728587dfc6a5f4090f2673113ffedb2be924daf (diff) | |
Improvements working towards better inline tests. Improved handling of
file spoofing and adding -e command line flag for executing a string.
Diffstat (limited to 'tools/autoformat.nom')
| -rwxr-xr-x | tools/autoformat.nom | 3 |
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 |
