Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
fix long_string lexer (\r)
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 27, 2009
1 parent ca3dfd7 commit 57459b0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/grammar51.pir
Expand Up @@ -460,9 +460,8 @@ and C<'1'> is coded as 49), the five literals below denote the same string:
dec pos
goto CONCAT
L6:
$I0 = index "\n\r", $S0
if $I0 < 0 goto L8
$S0 = "\n"
if $S0 != "\r" goto L8
$S0 = ''
goto CONCAT
L8:

Expand Down Expand Up @@ -542,11 +541,10 @@ long bracket. Long comments are frequently used to disable code temporarily.
dec pos
goto CONCAT
L6:
$I0 = index "\n\r", $S0
if $I0 < 0 goto L8
# $S0 = "\n"
goto CONCAT
L8:
# if $S0 != "\r" goto L8
# $S0 = ''
# goto CONCAT
# L8:

CONCAT:
# concat literal, $S0
Expand Down

0 comments on commit 57459b0

Please sign in to comment.