Skip to content

Instantly share code, notes, and snippets.

View ostrokach's full-sized avatar

Alexey Strokach ostrokach

View GitHub Profile
@ostrokach
ostrokach / syslog.py
Created January 9, 2016 03:26 — forked from nega0/syslog.py
a simple "syslog" lexer for pygments
## a simple "syslog" lexer for pygmentize
from pygments.lexer import RegexLexer, bygroups
from pygments.token import *
__all__ = ['SyslogLexer']
class SyslogLexer(RegexLexer):
name = 'Syslog'
aliases = ["syslog"]