Fix build tool freeze when parsing scripting header that contains invalid multi-line comment
This commit is contained in:
@@ -258,7 +258,7 @@ namespace Flax.Build
|
||||
(
|
||||
@"(?<ws>[ \t]+)|" +
|
||||
@"(?<nl>(?:\r\n|\n))|" +
|
||||
@"(?<commul>/\*(?:(?!\*/)(?:.|[\r\n]+))*\*/)|" +
|
||||
@"(?<commul>/\*[^*]*\*+(?:[^/*][^*]*\*+)*/)|" +
|
||||
@"(?<comsin>//(.*?)\r?\n)|" +
|
||||
@"(?<ident>[a-zA-Z_][a-zA-Z0-9_]*)|" +
|
||||
@"(?<hex>0x[0-9a-fA-F]+)|" +
|
||||
|
||||
Reference in New Issue
Block a user