diff --git a/rules/token-matching.xml b/rules/token-matching.xml index e2fc85bde..457cafb77 100644 --- a/rules/token-matching.xml +++ b/rules/token-matching.xml @@ -1,34 +1,36 @@ - - Token :: (?:findm|(?:simple|)M)atch \([^,]+,\s+"(?:\s+|[^"]+?\s+") - - TokenMatchSpacing - style - Useless extra spacing for Token::*Match. - - - - (?U)Token :: Match \([^,]+,\s+"[^%|!\[\]]+" - - UseTokensimpleMatch - error - Token::simpleMatch should be used to match tokens + + + Token :: (?:findm|(?:simple|)M)atch \([^,]+,\s+"(?:\s+|[^"]+?\s+") + + TokenMatchSpacing + style + Useless extra spacing for Token::*Match. + + + + (?U)Token :: Match \([^,]+,\s+"[^%|!\[\]]+" + + UseTokensimpleMatch + error + Token::simpleMatch should be used to match tokens without special pattern requirements. - - - - \b[\w_]+ \. tokAt \( 0 \) - - TokentokAt0 - error - tok->tokAt(0) is a slow way to say tok. - - - - \b[\w_]+ \. strAt \( 0 \) - - TokenstrAt0 - error - tok->strAt(0) is a slow way to say tok->str() - - + + + + \b[\w_]+ \. tokAt \( 0 \) + + TokentokAt0 + error + tok->tokAt(0) is a slow way to say tok. + + + + \b[\w_]+ \. strAt \( 0 \) + + TokenstrAt0 + error + tok->strAt(0) is a slow way to say tok->str() + + +