From ae70a0338350ba93ea55722b5c671b3853a1cf79 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 4 Apr 2020 21:46:08 -0500 Subject: Address #306 - Add unicode escapes. Unicode escapes have the same syntax as go - \uXXXX or \UXXXXXXXX. --- tools/tm_lang_gen.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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 @@ match - (\\[nevr0zft"\\']|\\x[0-9a-fA-F][0-9a-fA-f]) + (\\[nevr0zft"\\']|\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}) name constant.character.escape.janet -- cgit v1.2.3