Fix block comments regexp

Before this commit, comments like this could not be recognized:

    /* blah blah * blah  / <- this slash failed */
This commit is contained in:
Skydark Chen committed 2015-11-15 19:58:21 +08:00
1 parent 2924666ad4
commit bd55380b5a
1 file changed
+1 -1
@@ -95,7 +95,7 @@ public class ZenTokener extends TokenStream {
private static final String[] REGEXPS = {
"#[^\n]*[\n\\e]",
"//[^\n]*[\n\\e]",
"/\\*[^\\*]*(\\*[^/]*)*\\*/",
"/\\*[^\\*]*(\\*|\\*[^/\\*][^\\*]*)*\\*/",
"[ \t\r\n]*",
"[a-zA-Z_][a-zA-Z_0-9]*",
"\\-?(0|[1-9][0-9]*)\\.[0-9]+([eE][\\+\\-]?[0-9]+)?",