summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scan.l b/src/scan.l
index abe47f4..66db864 100644
--- a/src/scan.l
+++ b/src/scan.l
@@ -919,7 +919,7 @@ nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */
{NL} {
++linenum;
ACTION_ECHO;
- if (bracelevel == 0 || (doing_codeblock && indented_code)) {
+ if (bracelevel <= 0 || (doing_codeblock && indented_code)) {
if ( doing_rule_action )
add_action( "\tYY_BREAK]""]\n" );
@@ -964,7 +964,7 @@ nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */
<ACTION_STRING,CHARACTER_CONSTANT>{
(\\\n)* ACTION_ECHO;
\\(\\\n)*. ACTION_ECHO;
- {NL} ++linenum; ACTION_ECHO; BEGIN(ACTION);
+ {NL} ++linenum; ACTION_ECHO; if (bracelevel <= 0) { BEGIN(SECT2); } else { BEGIN(ACTION); }
. ACTION_ECHO;
}