py-lua-parser icon indicating copy to clipboard operation
py-lua-parser copied to clipboard

Strings are not being parsed

Open fabi321 opened this issue 1 year ago • 0 comments

when I parse the string `'\0\n\ta', the escape sequences are not being parsed.

tree = ast.parse("a='\\0\\n\\ta'")

leads to the string node:

String: {} 3 keys
  s: '\\0\\n\\ta'
  delimiter: SINGLE_QUOTE

however, it should look like:

String: {} 3 keys
  s: '\x00\n\ta'
  delimiter: SINGLE_QUOTE

fabi321 avatar May 10 '23 13:05 fabi321