diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-04 18:04:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-04 18:04:13 +1200 |
commit | 6d8f6ad10dd078042d578c030fc76acda8d54525 (patch) | |
tree | 680f22ff2081d6a3cb7faa628529d434e5ff519c /bin/mi5.awk | |
parent | Whoops, a couple more mi5(1df) man page fixes (diff) | |
download | dotfiles-6d8f6ad10dd078042d578c030fc76acda8d54525.tar.gz dotfiles-6d8f6ad10dd078042d578c030fc76acda8d54525.zip |
Playing a little more golf
Diffstat (limited to 'bin/mi5.awk')
-rw-r--r-- | bin/mi5.awk | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/mi5.awk b/bin/mi5.awk index 14f2ff2b..6042a46c 100644 --- a/bin/mi5.awk +++ b/bin/mi5.awk @@ -60,8 +60,7 @@ bmac && NF { if (iquo) { # Look for end of comment and tip flag accordingly - if (substr(src, i, length(unquote)) == unquote) - iquo = 0 + iquo = (substr(src, i, length(unquote)) != unquote) } # Inline macro expansion @@ -81,8 +80,7 @@ bmac && NF { } # Look for start of comment and tip flag accordingly - if (substr(src, i, length(quote)) == quote) - iquo = 1 + iquo = (substr(src, i, length(quote)) == quote) } # Plain text mode |