From b3959b515fce642b4f873a25f1c13c604512d9fe Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 19 Jul 2016 17:27:44 +0200 Subject: Update qcssscanner so it can parse our normal offline documentation CSS Adds the three CSS3 attribute selectors. During this the internal naming of the existing attribute-selectors have been changed to be more clear, and the dash-matching has been fixed to not just be beginsWith. A non-breaking space have also been removed from the CSS. Change-Id: Ia4db4a5a19e3ceee8c3c8a4b744149edd1d32bdc Reviewed-by: Simon Hausmann --- util/lexgen/css2-simplified.lexgen | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/lexgen/css2-simplified.lexgen b/util/lexgen/css2-simplified.lexgen index 53facb1d4a..01052a1615 100644 --- a/util/lexgen/css2-simplified.lexgen +++ b/util/lexgen/css2-simplified.lexgen @@ -5,7 +5,7 @@ classname = QCssScanner_Generated [Code Generator Options] MapToCode[a-z] = (ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256 TokenPrefix = QCss:: -FileHeader = ../moc/licenseheader.txt +FileHeader = ../../src/tools/moc/util/licenseheader.txt [Macros] escape = \\[^\r\n\f0-9a-f] @@ -36,6 +36,9 @@ CDO = "" INCLUDES = "~=" DASHMATCH = "|=" +BEGINSWITH = "^=" +ENDSWITH = "$=" +CONTAINS = "*=" LBRACE = {w}"{" PLUS = {w}"+" -- cgit v1.2.3