Skip to content

Instantly share code, notes, and snippets.

@KeenS
Created July 24, 2014 16:37
Show Gist options
  • Save KeenS/abf5fcd18741e41ebe3d to your computer and use it in GitHub Desktop.
Save KeenS/abf5fcd18741e41ebe3d to your computer and use it in GitHub Desktop.
diff --git a/src/mirahparser/impl/Mirah.mmeta b/src/mirahparser/impl/Mirah.mmeta
index 520b75b..b4c3d36 100644
--- a/src/mirahparser/impl/Mirah.mmeta
+++ b/src/mirahparser/impl/Mirah.mmeta
@@ -1293,7 +1293,8 @@ parser EscapeParser {
|codepoint
);
- regex: unicode_escape
+ regex: "\\\\" ! {"\\\\"}
+ | unicode_escape
| "\\"! c=codepoint {"\\#{c}"};
def _codepoint() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment