summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-07-19 17:27:44 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-07-26 13:26:00 +0000
commitb3959b515fce642b4f873a25f1c13c604512d9fe (patch)
tree9ddf427069c5740953c7feb7aba33ebc8e213826 /util
parenta12cc29cf542cb7c325da6b266d1179d13c3b831 (diff)
downloadqtbase-b3959b515fce642b4f873a25f1c13c604512d9fe.tar.gz
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 <simon.hausmann@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/lexgen/css2-simplified.lexgen5
1 files changed, 4 insertions, 1 deletions
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 = "<!--"
CDC = "-->"
INCLUDES = "~="
DASHMATCH = "|="
+BEGINSWITH = "^="
+ENDSWITH = "$="
+CONTAINS = "*="
LBRACE = {w}"{"
PLUS = {w}"+"