diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-30 23:56:28 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-30 23:58:43 -0800 |
| commit | ec69ee6f62016a2edcc13e3183cbe4cadd75717f (patch) | |
| tree | 24e04f77c7390d379f2fb372611ac468a67aed03 /tools/upgrade.nom | |
| parent | 435eae7c0ab10577431bb943a6f48873e5ecdf7c (diff) | |
Fixes for: indented strings ending in ", peeking at code object text
before modifying them, and major upgrades to the nomsu codegen,
including support for indented inline arguments (instead of using
"\n..") and just generally better line wrapping, including finally good
rules for when to use indented text (for almost all cases).
Diffstat (limited to 'tools/upgrade.nom')
| -rwxr-xr-x | tools/upgrade.nom | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upgrade.nom b/tools/upgrade.nom index f335dc0..23716a2 100755 --- a/tools/upgrade.nom +++ b/tools/upgrade.nom @@ -19,7 +19,7 @@ for $filename in $(COMMAND LINE ARGS).extras: $file = (read file $filename) unless $file: barf "File does not exist: \$filename" - $leading_indent = ($file, matching "[\n]*([ ]*)") + $leading_indent = ($file, matching "\n*([ ]*)") $code = (NomsuCode from (Source $filename 1 (size of $file)) $file) $tree = ($code parsed $start_version) $uptree = |
