mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-13 00:37:32 +00:00
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:
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]+)?",
|
||||
|
||||
Reference in new issue
Block a user