view pygments_lexer_pseudocode2/utils.py @ 105:cec52d83869a

Handle much more characters from the Unicode codeset in expressions. While there: FIX: Add forgotten Punctuation characters `?' and `@'. While there: Allow the escaping of single and double quotes that normally start a string (e.g. for expressions like f' is the first derivation of f).
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 04 May 2026 16:30:36 +0200
parents ae5e741d2a9b
children 298841bc4dee
line wrap: on
line source

# -*- coding: utf-8;  -*-
# :-
# SPDX-FileCopyrightText: © 2026 Franz Glasner
# SPDX-License-Identifier: MIT
# :-
r"""Some helper utility functions and data.

"""

__all__ = ["REVERSED_STANDARD_TYPES"]


import pygments.token


REVERSED_STANDARD_TYPES = {}

# Side-effect on import
for _toktype, _cssstyle in pygments.token.STANDARD_TYPES.items():
    REVERSED_STANDARD_TYPES[_cssstyle] = _toktype
del _toktype, _cssstyle