~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to khtml/css/tokenizer.flex

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
ident           -?{nmstart}{nmchar}*
15
15
name            {nmchar}+
16
16
num             [0-9]+|[0-9]*"."[0-9]+
 
17
intnum          [0-9]+
17
18
string          {string1}|{string2}
18
19
url             ([!#$%&*-~]|{nonascii}|{escape})*
19
20
w               [ \t\r\n\f]*
73
74
{num}kHz                {yyTok = KHERZ; return yyTok;}
74
75
{num}{ident}            {yyTok = DIMEN; return yyTok;}
75
76
{num}%                  {yyTok = PERCENTAGE; return yyTok;}
76
 
{num}                   {yyTok = NUMBER; return yyTok;}
 
77
{intnum}                {yyTok = INTEGER; return yyTok;}
 
78
{num}                   {yyTok = FLOAT; return yyTok;}
 
79
 
77
80
 
78
81
"not("                  {yyTok = NOTFUNCTION; return yyTok;}
79
82
"url("{w}{string}{w}")" {yyTok = URI; return yyTok;}