aiocoap.util.linkformat_pygments module

class aiocoap.util.linkformat_pygments.LinkFormatLexer(**options)

Bases: pygments.lexer.RegexLexer

name = 'LinkFormatLexer'
mimetypes = ['application/link-format']
tokens = {'attribute': [('([^,;=]+)((=)("[^"]*"|[^,;"]+))?', <function bygroups.<locals>.callback>, 'maybe-end')], 'maybe-end': [(';\\s*', Token.Punctuation, 'attribute'), (',\\s*', Token.Punctuation, 'root')], 'root': [('(<)([^>]*)(>)', <function bygroups.<locals>.callback>, 'maybe-end')]}