<s> import re <EOL> from pygments . lexer import RegexLexer , include , bygroups , using , DelegatingLexer <EOL> from pygments . token import * <EOL> class LLDBIntelLexer ( RegexLexer ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> aliases = [ '<STR_LIT>' ] <EOL> filenames = [ ] <EOL> mimetypes = [ ] <EOL> identifier = r'<STR_LIT>' <EOL> hexn = r'<STR_LIT>' <EOL> octn = r'<STR_LIT>' <EOL> binn = r'<STR_LIT>' <EOL> decn = r'<STR_LIT>' <EOL> floatn = decn + r'<STR_LIT>' + decn <EOL> string = r'<STR_LIT>' + r"<STR_LIT>" + r"<STR_LIT>" <EOL> declkw = r'<STR_LIT>' <EOL> register = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> wordop = r'<STR_LIT>' <EOL> type = r'<STR_LIT>' <EOL> flags = re . IGNORECASE | re . MULTILINE <EOL> tokens = { <EOL> '<STR_LIT:root>' : [ <EOL> include ( '<STR_LIT>' ) , <EOL> ( r'<STR_LIT>' , Comment . Preproc , '<STR_LIT>' ) , <EOL> ( identifier + '<STR_LIT::>' , Name . Label ) , <EOL> ( r'<STR_LIT>' % identifier , <EOL> bygroups ( Name . Constant , Keyword . Declaration , Keyword . Declaration ) , <EOL> '<STR_LIT>' ) , <EOL> ( declkw , Keyword . Declaration , '<STR_LIT>' ) , <EOL> ( identifier , Name . Function , '<STR_LIT>' ) , <EOL> ( hexn , Number . Hex ) , <EOL> ( r'<STR_LIT>' , Text ) , <EOL> ( r'<STR_LIT>' , Error ) , <EOL> ( r'<STR_LIT>' , Text ) <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( string , String ) , <EOL> ( hexn , Number . Hex ) , <EOL> ( octn , Number . Oct ) , <EOL> ( binn , Number . Bin ) , <EOL> ( floatn , Number . Float ) , <EOL> ( decn , Number . Integer ) , <EOL> include ( '<STR_LIT>' ) , <EOL> ( register , Name . Builtin ) , <EOL> ( identifier , Name . Variable ) , <EOL> ( r'<STR_LIT>' , Text , '<STR_LIT:#pop>' ) , <EOL> include ( '<STR_LIT>' ) <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( r'<STR_LIT>' , Comment . Preproc ) , <EOL> ( r'<STR_LIT>' , Comment . Single , '<STR_LIT:#pop>' ) , <EOL> ( r'<STR_LIT:\n>' , Comment . Preproc , '<STR_LIT:#pop>' ) , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( r'<STR_LIT:\n>' , Text ) , <EOL> ( r'<STR_LIT>' , Text ) , <EOL> ( r'<STR_LIT>' , Comment . Single ) , <EOL> ( r'<STR_LIT>' , Comment . Single ) <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( r'<STR_LIT>' , Punctuation ) , <EOL> ( r'<STR_LIT>' , Operator ) , <EOL> ( r'<STR_LIT>' , Keyword . Constant ) , <EOL> ( wordop , Operator . Word ) , <EOL> ( type , Keyword . Type ) <EOL> ] , <EOL> } <EOL> class VDBIntelLexer ( RegexLexer ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> aliases = [ '<STR_LIT>' ] <EOL> filenames = [ ] <EOL> mimetypes = [ ] <EOL> space = r'<STR_LIT>' <EOL> identifier = r'<STR_LIT>' <EOL> hexn = r'<STR_LIT>' <EOL> hexr = r'<STR_LIT>' <EOL> octn = r'<STR_LIT>' <EOL> binn = r'<STR_LIT>' <EOL> decn = r'<STR_LIT>' <EOL> floatn = decn + r'<STR_LIT>' + decn <EOL> string = r'<STR_LIT>' + r"<STR_LIT>" + r"<STR_LIT>" <EOL> register = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> wordop = r'<STR_LIT>' <EOL> type = r'<STR_LIT>' <EOL> flags = re . IGNORECASE | re . MULTILINE <EOL> tokens = { <EOL> '<STR_LIT:root>' : [ <EOL> ( r'<STR_LIT>' % ( register , space , hexn , hexr , space ) , <EOL> bygroups ( Name . Builtin , Text , Name . Label , Text , Number . Hex , Text ) , <EOL> "<STR_LIT>" ) , <EOL> ( r'<STR_LIT>' % ( space , hexn , hexr , space ) , <EOL> bygroups ( Text , Name . Label , Text , Number . Hex , Text ) , <EOL> "<STR_LIT>" ) <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( space , Text ) , <EOL> ( r"<STR_LIT>" , bygroups ( Name . Function , Text ) ) , <EOL> ( r"<STR_LIT>" % identifier , Name . Function , ( "<STR_LIT:#pop>" , "<STR_LIT>" ) ) , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( space , Text ) , <EOL> ( string , String ) , <EOL> ( hexn , Number . Hex ) , <EOL> ( octn , Number . Oct ) , <EOL> ( binn , Number . Bin ) , <EOL> ( floatn , Number . Float ) , <EOL> ( decn , Number . Integer ) , <EOL> include ( '<STR_LIT>' ) , <EOL> ( register , Name . Builtin ) , <EOL> ( identifier , Name . Variable ) , <EOL> ( r'<STR_LIT>' , Text , '<STR_LIT:#pop>' ) , <EOL> ( r'<STR_LIT:;>' , Text , ( "<STR_LIT:#pop>" , '<STR_LIT>' ) ) , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( space , Text ) , <EOL> ( string , Comment . Single ) , <EOL> ( hexn , Number . Hex ) , <EOL> ( octn , Number . Oct ) , <EOL> ( binn , Number . Bin ) , <EOL> ( floatn , Number . Float ) , <EOL> ( decn , Number . Integer ) , <EOL> include ( '<STR_LIT>' ) , <EOL> ( register , Name . Builtin ) , <EOL> ( identifier , Name . Variable ) , <EOL> ( r'<STR_LIT>' , Text , '<STR_LIT:#pop>' ) , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> ( r'<STR_LIT>' , Punctuation ) , <EOL> ( r'<STR_LIT>' , Operator ) , <EOL> ( r'<STR_LIT>' , Keyword . Constant ) , <EOL> ( wordop , Operator . Word ) , <EOL> ( type , Keyword . Type ) <EOL> ] , <EOL> } <EOL> class WinDbgIntelLexer ( VDBIntelLexer ) : <EOL> name = '<STR_LIT>' <EOL> aliases = [ '<STR_LIT>' ] <EOL> all_lexers = { <EOL> '<STR_LIT>' : LLDBIntelLexer , <EOL> '<STR_LIT>' : LLDBIntelLexer , <EOL> '<STR_LIT>' : VDBIntelLexer , <EOL> '<STR_LIT>' : LLDBIntelLexer <EOL> } </s>
