diff options
| author | 2020-04-04 21:46:08 -0500 | |
|---|---|---|
| committer | 2020-04-04 21:46:08 -0500 | |
| commit | ae70a0338350ba93ea55722b5c671b3853a1cf79 (patch) | |
| tree | 2db94326a6c7820b0855709410f704fef320d760 /tools | |
| parent | Address #321 (diff) | |
Address #306 - Add unicode escapes.
Unicode escapes have the same syntax as go - \uXXXX or \UXXXXXXXX.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/tm_lang_gen.janet | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tm_lang_gen.janet b/tools/tm_lang_gen.janet index 9d283026..f19a23b8 100644 --- a/tools/tm_lang_gen.janet +++ b/tools/tm_lang_gen.janet @@ -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> |
