import re from pygments.lexer import RegexLexer, bygroups, words from pygments.token import * class CryptoVerifLexer(RegexLexer): """ Lexer for the CryptoVerif """ flags = re.MULTILINE | re.DOTALL name = 'CrptoVerif' aliases = ['cryptoverif'] filenames = ['*.ocvl'] tokens = { 'root': [ (r'\(\*', Comment.Multiline, 'comment'), (r'\s+', Text), (r'(%|&)[^;]*;', Name.Entity), ('