From 52aab1e80c754b28b08b340a197853847ac8ec75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= Date: Sat, 21 Sep 2019 20:41:45 +0200 Subject: [PATCH] Fix xml syntax in token-matching.xml (#2197) The file token-matching.xml contains multiple rules - Add xml tags - Fixes the following xmllint error: ./rules/token-matching.xml:10: parser error : Extra content at the end of the document ^ --- rules/token-matching.xml | 66 +++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 32 deletions(-) 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() + + +