Replace [\w\W] with [\s\S] and [0-9] with \d in regexes#1107
Replace [\w\W] with [\s\S] and [0-9] with \d in regexes#1107Golmote merged 3 commits intoPrismJS:gh-pagesfrom valtlai:gh-pages
Conversation
|
Wow, I actually didn't know about the What's your opinion about this @LeaVerou, @zeitgeist87 ? |
|
I'm fine with it :) |
|
According to https://regex101.com/ the |
|
@zeitgeist87, I agree. @valtlai, would you mind updating this PR to use one of |
|
@Golmote Yeah, done. |
|
Thanks for contributing! |
* support for Template Toolkit 2 * optimized quoted string regexes * optimized double-quoted string regex * fully qualified tt2 plug-in names don't work Also use \w. * do not use empty character class See #1107. * put keyword tests in alphabetical order * ordered tt2 keywords alphabetically * removed redundant operator rule for tt2 * removed possibly existing old rules before inserti * indentation * allow backslash in front of lf in tt2 strings * indentation * avoid backtracking * escape xml special characters * indent with tab instead of spaces * greedy is no longer needed for variables Also use \w instead of explicit character class. * re-generated with gulp
[\w\W]→[\s\S][0-9]→\d