1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-10 06:46:08 +00:00

Address #306 - Add unicode escapes.

Unicode escapes have the same syntax as go - \uXXXX or \UXXXXXXXX.
This commit is contained in:
Calvin Rose
2020-04-04 21:46:08 -05:00
parent 081d132538
commit ae70a03383
3 changed files with 46 additions and 2 deletions

View File

@@ -308,7 +308,7 @@
<array>
<dict>
<key>match</key>
<string>(\\[nevr0zft"\\']|\\x[0-9a-fA-F][0-9a-fA-f])</string>
<string>(\\[nevr0zft"\\']|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8})</string>
<key>name</key>
<string>constant.character.escape.janet</string>
</dict>