module documentation
pygments.token ~~~~~~~~~~~~~~ Basic token types and the standard tokens. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.
Function | is |
Return True if ``ttype`` is a subtype of ``other``. |
Function | string |
Convert a string into a token type:: |
Constant | STANDARD |
Undocumented |
Variable |
|
Undocumented |
Class | _ |
Undocumented |
Return True if ``ttype`` is a subtype of ``other``. exists for backwards compatibility. use ``ttype in other`` now.
Convert a string into a token type:: >>> string_to_token('String.Double') Token.Literal.String.Double >>> string_to_token('Token.Literal.Number') Token.Literal.Number >>> string_to_token('') Token Tokens that are already tokens are returned unchanged: >>> string_to_token(String) Token.Literal.String
Undocumented
Value |
|