2011-04-27 10:05:43 +00:00
|
|
|
[Options]
|
|
|
|
case-sensitive
|
|
|
|
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::
|
2016-07-19 15:27:44 +00:00
|
|
|
FileHeader = ../../src/tools/moc/util/licenseheader.txt
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
[Macros]
|
|
|
|
escape = \\[^\r\n\f0-9a-f]
|
|
|
|
nmstart = [_a-z]|{escape}
|
|
|
|
nmchar = [_a-z0-9-]|{escape}
|
|
|
|
nl = \n|\r\n|\r|\f
|
|
|
|
string1 = \"([^\n\r\f\\"]|\\{nl}|{escape})*\"
|
|
|
|
string2 = \'([^\n\r\f\\']|\\{nl}|{escape})*\'
|
|
|
|
invalid1 = \"([^\n\r\f\\"]|\\{nl}|{escape})*
|
|
|
|
invalid2 = \'([^\n\r\f\\']|\\{nl}|{escape})*
|
|
|
|
|
|
|
|
ident = -?{nmstart}{nmchar}*
|
|
|
|
name = {nmchar}+
|
|
|
|
num = [0-9]+|[0-9]*"."[0-9]+
|
|
|
|
string = {string1}|{string2}
|
|
|
|
invalid = {invalid1}|{invalid2}
|
|
|
|
url = ([!#$%&*-~]|{escape})*
|
|
|
|
s = [ \t\r\n\f]
|
|
|
|
w = {s}*
|
|
|
|
|
|
|
|
[Tokens]
|
|
|
|
|
|
|
|
S = {s}+
|
|
|
|
|
|
|
|
handleCommentStart() = \/\*
|
|
|
|
|
|
|
|
CDO = "<!--"
|
|
|
|
CDC = "-->"
|
|
|
|
INCLUDES = "~="
|
|
|
|
DASHMATCH = "|="
|
2016-07-19 15:27:44 +00:00
|
|
|
BEGINSWITH = "^="
|
|
|
|
ENDSWITH = "$="
|
|
|
|
CONTAINS = "*="
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
LBRACE = {w}"{"
|
|
|
|
PLUS = {w}"+"
|
|
|
|
GREATER = {w}">"
|
|
|
|
COMMA = {w}","
|
2016-07-27 16:04:21 +00:00
|
|
|
TILDE= {w}"~"
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
STRING = {string}
|
|
|
|
INVALID = {invalid}
|
|
|
|
|
|
|
|
IDENT = {ident}
|
|
|
|
|
|
|
|
HASH = "#"{name}
|
|
|
|
|
|
|
|
ATKEYWORD_SYM = "@"{ident}
|
|
|
|
|
|
|
|
EXCLAMATION_SYM = "!"
|
|
|
|
|
|
|
|
#EMS = {num}em
|
|
|
|
#EXS = {num}ex
|
|
|
|
#LENGTH = {num}px
|
|
|
|
#LENGTH = {num}cm
|
|
|
|
#LENGTH = {num}mm
|
|
|
|
#LENGTH = {num}in
|
|
|
|
#LENGTH = {num}pt
|
|
|
|
#LENGTH = {num}pc
|
|
|
|
#ANGLE = {num}deg
|
|
|
|
#ANGLE = {num}rad
|
|
|
|
#ANGLE = {num}grad
|
|
|
|
#TIME = {num}ms
|
|
|
|
#TIME = {num}s
|
|
|
|
#FREQ = {num}hz
|
|
|
|
#FREQ = {num}khz
|
|
|
|
#DIMENSION = {num}{ident}
|
|
|
|
LENGTH = {num}{ident}
|
|
|
|
|
|
|
|
PERCENTAGE = {num}%
|
|
|
|
NUMBER = {num}
|
|
|
|
|
|
|
|
#URI = "url("{w}{string}{w}")"
|
|
|
|
#URI = "url("{w}{url}{w}")"
|
|
|
|
FUNCTION = {ident}"("
|
|
|
|
|
|
|
|
COLON = :
|
|
|
|
SEMICOLON = ;
|
|
|
|
RBRACE = \}
|
|
|
|
SLASH = /
|
|
|
|
MINUS = -
|
|
|
|
DOT = \.
|
|
|
|
STAR = \*
|
|
|
|
LBRACKET = \[
|
|
|
|
RBRACKET = \]
|
|
|
|
EQUAL = \=
|
|
|
|
LPAREN = \(
|
|
|
|
RPAREN = \)
|
|
|
|
OR = \|
|