<s> """<STR_LIT>""" <EOL> from pygments . lexer import RegexLexer , bygroups , include <EOL> from pygments . token import Name , Text , Generic , Comment <EOL> class ShellExampleLexer ( RegexLexer ) : <EOL> name = "<STR_LIT>" <EOL> aliases = "<STR_LIT>" <EOL> filenames = [ ] <EOL> tokens = { <EOL> "<STR_LIT:root>" : [ <EOL> include ( "<STR_LIT>" ) , <EOL> include ( "<STR_LIT>" ) , <EOL> ( r"<STR_LIT>" , Text , "<STR_LIT:input>" ) , <EOL> ( r"<STR_LIT>" , Text ) , <EOL> ( r"<STR_LIT>" , Text ) , <EOL> ( r"<STR_LIT:\\>" , Text ) , <EOL> ] , <EOL> "<STR_LIT:input>" : [ <EOL> include ( "<STR_LIT>" ) , <EOL> include ( "<STR_LIT>" ) , <EOL> ( r"<STR_LIT>" , Generic . Strong ) , <EOL> ( r"<STR_LIT>" , Generic . Strong ) , <EOL> ( r"<STR_LIT:\\>" , Generic . Strong ) , <EOL> ( r"<STR_LIT:\n>" , Text , "<STR_LIT:#pop>" ) , <EOL> ( r"<STR_LIT>" , Text ) , <EOL> ] , <EOL> "<STR_LIT>" : [ <EOL> ( r"<STR_LIT>" , Comment . Single ) , <EOL> ] , <EOL> "<STR_LIT>" : [ <EOL> ( r"<STR_LIT>" , bygroups ( None , Text ) ) , <EOL> ( r"<STR_LIT>" , bygroups ( None , Name . Variable , None ) ) , <EOL> ] , <EOL> } <EOL> def setup ( app ) : <EOL> app . add_lexer ( "<STR_LIT>" , ShellExampleLexer ( ) ) </s>
