Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations
nsCSSScanner.h File Reference
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsCSSToken
class  nsCSSScanner

Defines

#define CSS_REPORT_PARSE_ERRORS

Enumerations

enum  nsCSSTokenType {
  eCSSToken_Ident, eCSSToken_AtKeyword, eCSSToken_Number, eCSSToken_Percentage,
  eCSSToken_Dimension, eCSSToken_String, eCSSToken_WhiteSpace, eCSSToken_Symbol,
  eCSSToken_ID, eCSSToken_Ref, eCSSToken_Function, eCSSToken_URL,
  eCSSToken_InvalidURL, eCSSToken_HTMLComment, eCSSToken_Includes, eCSSToken_Dashmatch,
  eCSSToken_Beginsmatch, eCSSToken_Endsmatch, eCSSToken_Containsmatch, eCSSToken_Error
}

Define Documentation

Definition at line 47 of file nsCSSScanner.h.


Enumeration Type Documentation

Enumerator:
eCSSToken_Ident 
eCSSToken_AtKeyword 
eCSSToken_Number 
eCSSToken_Percentage 
eCSSToken_Dimension 
eCSSToken_String 
eCSSToken_WhiteSpace 
eCSSToken_Symbol 
eCSSToken_ID 
eCSSToken_Ref 
eCSSToken_Function 
eCSSToken_URL 
eCSSToken_InvalidURL 
eCSSToken_HTMLComment 
eCSSToken_Includes 
eCSSToken_Dashmatch 
eCSSToken_Beginsmatch 
eCSSToken_Endsmatch 
eCSSToken_Containsmatch 
eCSSToken_Error 

Definition at line 54 of file nsCSSScanner.h.

                    {
  // A css identifier (e.g. foo)
  eCSSToken_Ident,          // mIdent

  // A css at keyword (e.g. @foo)
  eCSSToken_AtKeyword,      // mIdent

  // A css number without a percentage or dimension; with percentage;
  // without percentage but with a dimension
  eCSSToken_Number,         // mNumber
  eCSSToken_Percentage,     // mNumber
  eCSSToken_Dimension,      // mNumber + mIdent

  // A css string (e.g. "foo" or 'foo')
  eCSSToken_String,         // mSymbol + mIdent + mSymbol

  // Whitespace (e.g. " " or "/* abc */")
  eCSSToken_WhiteSpace,     // mIdent

  // A css symbol (e.g. ':', ';', '+', etc.)
  eCSSToken_Symbol,         // mSymbol

  // A css1 id (e.g. #foo3)
  eCSSToken_ID,             // mIdent
  // Just like eCSSToken_ID, except the part following the '#' is not
  // a valid CSS identifier (eg. starts with a digit, is the empty
  // string, etc).
  eCSSToken_Ref,            // mIdent

  eCSSToken_Function,       // mIdent

  eCSSToken_URL,            // mIdent
  eCSSToken_InvalidURL,     // doesn't matter

  eCSSToken_HTMLComment,    // "<!--" or "-->"

  eCSSToken_Includes,       // "~="
  eCSSToken_Dashmatch,      // "|="
  eCSSToken_Beginsmatch,    // "^="
  eCSSToken_Endsmatch,      // "$="
  eCSSToken_Containsmatch,  // "*="

  // A special token indicating that there was an error in tokenization.
  // It's always an unterminated string.
  eCSSToken_Error           // mSymbol + mIdent
};