Skip to content

Commit

Permalink
Add StrLiteralsLatin1 for Latin-1 characters in string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Sep 29, 2024
1 parent 958da6d commit 993e005
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions formats/str_literals_latin1.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
meta:
id: str_literals_latin1
seq:
- id: len_parsed
type: u2le
- id: parsed
size: len_parsed
type: str
encoding: UTF-8
instances:
parsed_eq_literal:
value: parsed == "\u00a3"
5 changes: 5 additions & 0 deletions spec/ks/str_literals_latin1.kst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
id: str_literals_latin1
data: str_literals_latin1.bin
asserts:
- actual: parsed_eq_literal
expected: true
Binary file added src/str_literals_latin1.bin
Binary file not shown.

0 comments on commit 993e005

Please sign in to comment.