mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Parse escape sequences instead of using replace
That way we can warn about invalid sequences. Also, the previous code had at least one subtle bug (`\\\\'`).
This commit is contained in:
parent
bc798c544c
commit
ea92838cf3
7 changed files with 76 additions and 21 deletions
1
tests/sample_errors/bad_escape_sequence.err
Normal file
1
tests/sample_errors/bad_escape_sequence.err
Normal file
|
@ -0,0 +1 @@
|
|||
4,17,2,Invalid escape sequence '\f'
|
Loading…
Add table
Add a link
Reference in a new issue