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:
James Westman 2023-09-28 14:41:12 -05:00
parent bc798c544c
commit ea92838cf3
7 changed files with 76 additions and 21 deletions

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Label {
label: '***** \f *****';
}

View file

@ -0,0 +1 @@
4,17,2,Invalid escape sequence '\f'