diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-30 02:33:01 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-07 21:17:22 +0200 |
commit | fc9f889b376ccec4a795ca87874f8efa22321726 (patch) | |
tree | f5bd1aabbe5af107e797c628ab6ab61e378864d3 /module/c/lex.scm | |
parent | C parser add basic float support. (diff) | |
download | calp-fc9f889b376ccec4a795ca87874f8efa22321726.tar.gz calp-fc9f889b376ccec4a795ca87874f8efa22321726.tar.xz |
Fix escape sequences in chars and strings.
Diffstat (limited to 'module/c/lex.scm')
-rw-r--r-- | module/c/lex.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/c/lex.scm b/module/c/lex.scm index b6523a87..b3c82001 100644 --- a/module/c/lex.scm +++ b/module/c/lex.scm @@ -72,7 +72,7 @@ (define-peg-pattern base-16-char all (and (ignore "x") base-16-digit (? base-16-digit))) -(define-peg-pattern escaped-char body +(define-peg-pattern escaped-char all (and (ignore "\\") (or base-16-char base-8-char peg-any))) |