This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/json/test_escape_sequences.txt
2023-02-23 16:41:01 +01:00

79 lines
1.4 KiB
Text

---input---
"\""
"\\"
"\/"
"\b"
"\f"
"\n"
"\r"
"\t"
"\u0123"
"\u4567"
"\u89ab"
"\ucdef"
"\uABCD"
"\uEF01"
// Incomplete sequences
"\uz"
"\u1z"
"\u12z"
"\u123z"
---tokens---
'"\\""' Literal.String.Double
'\n' Text.Whitespace
'"\\\\"' Literal.String.Double
'\n' Text.Whitespace
'"\\/"' Literal.String.Double
'\n' Text.Whitespace
'"\\b"' Literal.String.Double
'\n' Text.Whitespace
'"\\f"' Literal.String.Double
'\n' Text.Whitespace
'"\\n"' Literal.String.Double
'\n' Text.Whitespace
'"\\r"' Literal.String.Double
'\n' Text.Whitespace
'"\\t"' Literal.String.Double
'\n' Text.Whitespace
'"\\u0123"' Literal.String.Double
'\n' Text.Whitespace
'"\\u4567"' Literal.String.Double
'\n' Text.Whitespace
'"\\u89ab"' Literal.String.Double
'\n' Text.Whitespace
'"\\ucdef"' Literal.String.Double
'\n' Text.Whitespace
'"\\uABCD"' Literal.String.Double
'\n' Text.Whitespace
'"\\uEF01"' Literal.String.Double
'\n\n' Text.Whitespace
'// Incomplete sequences' Comment.Single
'\n' Text.Whitespace
'"\\uz"' Literal.String.Double
'\n' Text.Whitespace
'"\\u1z"' Literal.String.Double
'\n' Text.Whitespace
'"\\u12z"' Literal.String.Double
'\n' Text.Whitespace
'"\\u123z"' Literal.String.Double
'\n' Text.Whitespace