summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/sh.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/sh.l b/bin/sh.l
index 77dd2518..fcd5ce35 100644
--- a/bin/sh.l
+++ b/bin/sh.l
@@ -81,6 +81,10 @@ reserved [!{}]|else|do|elif|for|done|fi|then|until|while|if|case|esac
 	return Subst;
 }
 
+"\n" {
+	BEGIN(push(First));
+	return Normal;
+}
 [&();|]|"&&"|";;"|"||" {
 	BEGIN(push(First));
 	return Operator;
@@ -89,7 +93,6 @@ reserved [!{}]|else|do|elif|for|done|fi|then|until|while|if|case|esac
 	return Operator;
 }
 
-^{reserved} { return Keyword; }
 <First>{
 	[[:blank:]]+ { return Normal; }
 	{reserved} {