mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
AsmParser: Require whitespace before tags in location comments
This commit is contained in:
@@ -131,7 +131,7 @@ void Parser::fetchSourceLocationFromComment()
|
||||
return;
|
||||
|
||||
static regex const tagRegex = regex(
|
||||
R"~~(\s*(@[a-zA-Z0-9\-_]+)(?:\s+|$))~~", // tag, e.g: @src
|
||||
R"~~((?:^|\s+)(@[a-zA-Z0-9\-_]+)(?:\s+|$))~~", // tag, e.g: @src
|
||||
regex_constants::ECMAScript | regex_constants::optimize
|
||||
);
|
||||
static regex const srcTagArgsRegex = regex(
|
||||
|
||||
Reference in New Issue
Block a user