summaryrefslogtreecommitdiff
path: root/scan.l
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>2000-08-21 16:38:43 +0000
committerVern Paxson <vern@ee.lbl.gov>2000-08-21 16:38:43 +0000
commit749cab586a2fb6e527bd2870fc2fc9ad96130fe4 (patch)
treec382f993e7ab0f3fd4c07c72a87f6e0940661331 /scan.l
parent27a4656e92b48bd9025c57ac336947dd1e26cd56 (diff)
if a newline is seen in <ACTION_STRING>, assume it terminates the string.
Diffstat (limited to 'scan.l')
-rw-r--r--scan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan.l b/scan.l
index 5f14ac3..7b894f6 100644
--- a/scan.l
+++ b/scan.l
@@ -619,7 +619,7 @@ LEXOPT [aceknopr]
<ACTION_STRING>{
[^"\\\n]+ ACTION_ECHO;
\\. ACTION_ECHO;
- {NL} ++linenum; ACTION_ECHO;
+ {NL} ++linenum; ACTION_ECHO; BEGIN(ACTION);
\" ACTION_ECHO; BEGIN(ACTION);
. ACTION_ECHO;
}