Keyword, Name, String, Number, Punctuation, # Literal, STANDARD_TYPES) STANDARD_TYPES.update({ String.Double.Logger: 's2l', String.Double.Logger.Asctime: 's2la', String.Double.Logger.Curl: 's2lc', String.Double.Logger.Name: 's2ln', String.Double.Logger.Message: 's2lm', String.Double.Logger.Message.Success: 's2lms', String.Double.Logger.Message.Error: 's2lme', String.Double.Logger.Version.Multiverse: 's2lvm', String.Double.Logger.Version.Requests: 's2lvr', String.Double.Logger.Level.Info: 's2lli', String.Double.Logger.Level.Debug: 's2lld', String.Double.Logger.Level.Warning: 's2llw', String.Double.Logger.Level.Error: 's2lle', String.Double.Logger.Level.Critical: 's2llc' }) class LoggerJsonLexer(pygments.lexer.RegexLexer): """ For JSON data structures. .. versionadded:: 0.1 """
CellmlTextComment: 'ctc', CellmlTextKeyword: 'ctk', CellmlTextCellmlKeyword: 'ctck', CellmlTextNumber: 'ctn', CellmlTextOperator: 'cto', CellmlTextParameterBlock: 'ctpb', CellmlTextParameterCellmlKeyword: 'ctpck', CellmlTextParameterKeyword: 'ctpk', CellmlTextParameterNumber: 'ctpn', CellmlTextParameterSiUnitKeyword: 'ctpsuk', CellmlTextPunctuation: 'ctp', CellmlTextString: 'cts', CellmlTextSiUnitKeyword: 'ctsuk' } STANDARD_TYPES.update(CELLMLTEXT_TYPES) class cellmlTextLexer(RegexLexer): tokens = { 'root': [ # Single and multiline comments (r'//(\n|[\w\W]*?[^\\]\n)', CellmlTextComment), (r'/(\\\n)?[*][\w\W]*?[*](\\\n)?/', CellmlTextComment), (r'/(\\\n)?[*][\w\W]*', CellmlTextComment), # Keywords ( words( ( # CellML Text keywords