MediaWiki  REL1_19
csslex.py File Reference

Go to the source code of this file.

Variables

list csslex.__all__ = [ "NEWLINE", "HEX", "NON_ASCII", "UNICODE", "ESCAPE", "NMSTART", "NMCHAR", "STRING1", "STRING2", "IDENT", "NAME", "HASH", "NUM", "STRING", "URL", "SPACE", "WHITESPACE", "COMMENT", "QUANTITY", "PUNC" ]
list csslex::__author__
string csslex.COMMENT = r'/\*[^*]*\*+([^/*][^*]*\*+)*/'
string csslex.ESCAPE = r'(?:'
string csslex.HASH = r'#'
string csslex.HEX = r'[0-9a-f]'
string csslex.IDENT = r'-?'
string csslex.KEYWORD = r'(?:\@(?:import|page|media|charset))'
string csslex.NAME = r'+'
string csslex.NEWLINE = r'\n|\r\n|\r|\f'
string csslex.NMCHAR = r'(?:[_a-z0-9-]|'
string csslex.NMSTART = r'(?:[_a-z]|'
string csslex.NON_ASCII = r'[\200-\377]'
string csslex.NUM = r'(?:[0-9]*\.[0-9]+|[0-9]+)'
string csslex.PUNC = r'<!--|-->|~=|\|=|[\{\+>,:;]'
string csslex.QUANTITY = '%s(?:%s%s|%s)?'
string csslex.SPACE = r'[ \t\r\n\f]'
string csslex.STRING = '(?:'
string csslex.STRING1 = r'"(?:[^\"\\]|\\.)*"'
string csslex.STRING2 = r"'(?:[^\'\\]|\\.)*'"
string csslex.UNICODE = r'(?:(?:\\'
string csslex.UNIT = r'(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)'
string csslex.URL = r'url\(%s(%s|%s)%s\)'
string csslex.URL_CHARS = r'(?:%s|%s|%s)*'
string csslex.URL_SPECIAL_CHARS = r'[!#$%&*-~]'
string csslex.WHITESPACE = '(?:'