Skip to content

Commit

Permalink
Merge pull request #1922 from GaloisInc/parse-backslash-n
Browse files Browse the repository at this point in the history
Fix parse error on `\n`
  • Loading branch information
mergify[bot] authored Aug 29, 2023
2 parents 0aa2492 + 1d1b639 commit 47cfc25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions intTests/test1894/test.saw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(\n -> n) 1;
3 changes: 3 additions & 0 deletions intTests/test1894/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set -e

$SAW test.saw
1 change: 0 additions & 1 deletion src/SAWScript/Lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ $charesc = [abfnrtv\\\"\'\&]
sawTokens :-
$white+ ;
"\n" ;
"//".* ;
"/*" { cnst TCmntS }
"*/" { cnst TCmntE }
Expand Down

0 comments on commit 47cfc25

Please sign in to comment.