Agregar varios nombres builtin y pasar global de nombre builtin a keyword.
Además inviertir el orden de imports para evitar que se redefina algo que
se quería importar explícitamente.
-from pygments.lexer import RegexLexer, include, bygroups, using, this
from pygments.token import *
from pygments.token import *
+from pygments.lexer import RegexLexer, include, bygroups, using, this
class PseudoCodeLexer(RegexLexer):
name = 'PseudoCode'
class PseudoCodeLexer(RegexLexer):
name = 'PseudoCode'
(r'[~!%^&*+=|?:<>/-]', Operator),
(r'[()\[\],.]', Punctuation),
(r'(auto|break|continue|else|function|is|in|not|and|or|while|'
(r'[~!%^&*+=|?:<>/-]', Operator),
(r'[()\[\],.]', Punctuation),
(r'(auto|break|continue|else|function|is|in|not|and|or|while|'
- r'foreach|if|return|throw|do|cast)\b', Keyword),
- (r'(true|false|null|global|exit|fflush|fork|wait|try_wait)\b',
- Name.Builtin),
+ r'foreach|if|return|throw|do|cast|global)\b', Keyword),
+ (r'(true|false|null|exit|fflush|fork|wait|try_wait|void|byte|'
+ r'thread_self|get_stack_top|pause|resume)\b', Name.Builtin),
('[a-zA-Z_][a-zA-Z0-9_]*', Name),
],
'root': [
('[a-zA-Z_][a-zA-Z0-9_]*', Name),
],
'root': [