forked from KolibriOS/kolibrios
204 lines
1.9 KiB
Plaintext
204 lines
1.9 KiB
Plaintext
|
#data
|
||
|
p[example="public class foo\
|
||
|
{\
|
||
|
private int x;\
|
||
|
\
|
||
|
foo(int x) {\
|
||
|
this.x = x;\
|
||
|
}\
|
||
|
\
|
||
|
}"] { color: red }
|
||
|
#expected
|
||
|
IDENT:p
|
||
|
CHAR:[
|
||
|
IDENT:example
|
||
|
CHAR:=
|
||
|
STRING:public class foo\n{\n private int x;\n\n foo(int x) {\n this.x = x;\n }\n\n}
|
||
|
CHAR:]
|
||
|
S
|
||
|
CHAR:{
|
||
|
S
|
||
|
IDENT:color
|
||
|
CHAR::
|
||
|
S
|
||
|
IDENT:red
|
||
|
S
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
@import url("abcde
|
||
|
);
|
||
|
#expected
|
||
|
ATKEYWORD:import
|
||
|
S
|
||
|
FUNCTION:url
|
||
|
INVALID:abcde
|
||
|
S
|
||
|
CHAR:)
|
||
|
CHAR:;
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
body {
|
||
|
font-family: "Bitstream Vera Sans;
|
||
|
}
|
||
|
.one { width: 10em; }
|
||
|
#expected
|
||
|
IDENT:body
|
||
|
S
|
||
|
CHAR:{
|
||
|
S
|
||
|
IDENT:font-family
|
||
|
CHAR::
|
||
|
S
|
||
|
INVALID:Bitstream Vera Sans;
|
||
|
S
|
||
|
CHAR:}
|
||
|
S
|
||
|
CHAR:.
|
||
|
IDENT:one
|
||
|
S
|
||
|
CHAR:{
|
||
|
S
|
||
|
IDENT:width
|
||
|
CHAR::
|
||
|
S
|
||
|
DIMENSION:10em
|
||
|
CHAR:;
|
||
|
S
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
body { font-family: "Bitstream Vera Sans; }
|
||
|
.two { width: 10em; }
|
||
|
#expected
|
||
|
IDENT:body
|
||
|
S
|
||
|
CHAR:{
|
||
|
S
|
||
|
IDENT:font-family
|
||
|
CHAR::
|
||
|
S
|
||
|
INVALID:Bitstream Vera Sans; }
|
||
|
S
|
||
|
CHAR:.
|
||
|
IDENT:two
|
||
|
S
|
||
|
CHAR:{
|
||
|
S
|
||
|
IDENT:width
|
||
|
CHAR::
|
||
|
S
|
||
|
DIMENSION:10em
|
||
|
CHAR:;
|
||
|
S
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
"abcde
|
||
|
#expected
|
||
|
INVALID:abcde
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
#ad{color:/*{#ao{display:none}#ax{display:inline}
|
||
|
#expected
|
||
|
HASH:ad
|
||
|
CHAR:{
|
||
|
IDENT:color
|
||
|
CHAR::
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
#bd{background:url("xxx"}#bo{display:none}#bx{display:inline}
|
||
|
#expected
|
||
|
HASH:bd
|
||
|
CHAR:{
|
||
|
IDENT:background
|
||
|
CHAR::
|
||
|
FUNCTION:url
|
||
|
STRING:xxx
|
||
|
CHAR:}
|
||
|
HASH:bo
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:none
|
||
|
CHAR:}
|
||
|
HASH:bx
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:inline
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
#cd{background:url('xxx'}#co{display:none}#cx{display:inline}
|
||
|
#expected
|
||
|
HASH:cd
|
||
|
CHAR:{
|
||
|
IDENT:background
|
||
|
CHAR::
|
||
|
FUNCTION:url
|
||
|
STRING:xxx
|
||
|
CHAR:}
|
||
|
HASH:co
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:none
|
||
|
CHAR:}
|
||
|
HASH:cx
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:inline
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|
||
|
#data
|
||
|
#dd{background:url(xxx}#do{display:none}#dx{display:inline}
|
||
|
#expected
|
||
|
HASH:dd
|
||
|
CHAR:{
|
||
|
IDENT:background
|
||
|
CHAR::
|
||
|
FUNCTION:url
|
||
|
IDENT:xxx
|
||
|
CHAR:}
|
||
|
HASH:do
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:none
|
||
|
CHAR:}
|
||
|
HASH:dx
|
||
|
CHAR:{
|
||
|
IDENT:display
|
||
|
CHAR::
|
||
|
IDENT:inline
|
||
|
CHAR:}
|
||
|
S
|
||
|
EOF
|
||
|
#reset
|
||
|
|