summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--2020/day18-2.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/2020/day18-2.sh b/2020/day18-2.sh
new file mode 100644
index 0000000..1f49446
--- /dev/null
+++ b/2020/day18-2.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+sed '
+s/(/&((/g
+s/)/))&/g
+s/*/))*((/g
+s/+/)+(/g
+s/^/((/
+s/$/))/
+' | ./day18
19-02-10 21:16:52 -0500'>2019-02-10Use italic for underline in nvim man modeJune McEnroe This doesn't yet work in Terminal.app: <https://github.com/neovim/neovim/issues/9598>. 2019-02-10Add plain text "language" to hiJune McEnroe 2019-02-10Don't match DQ string inside SQ stringJune McEnroe 2019-02-10Skip only one character if a match fails due to parentJune McEnroe Really it should skip forward until the parent changes, but this is simpler. 2019-02-10Remove pattend from hiJune McEnroe 2019-02-10Replace uses of pattend with newline patternsJune McEnroe 2019-02-10Add hi debug outputJune McEnroe 2019-02-10Actually do HTML &quot; escapingJune McEnroe 2019-02-10Set git commit.verboseJune McEnroe 2019-02-10Add back missing static keywordJune McEnroe