aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorTwice <twice@apache.org>2025-11-07 21:12:28 +0800
committerGitHub <noreply@github.com>2025-11-07 21:12:28 +0800
commit7ac6a95a11c2f7b96a407b114ff103a0873ade98 (patch)
treefee694735476e44eed652c90cb936b7fb5b151cb /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parentcdc3cb20543bcb574f08ab23bffe0699f7a9cdc8 (diff)
downloadllvm-7ac6a95a11c2f7b96a407b114ff103a0873ade98.zip
llvm-7ac6a95a11c2f7b96a407b114ff103a0873ade98.tar.gz
llvm-7ac6a95a11c2f7b96a407b114ff103a0873ade98.tar.bz2
[MLIR][Pygments] Refine the pygments MLIR lexer (#166406)
Recently, the MLIR website added API documentation for the Python bindings generated via Sphinx ([https://mlir.llvm.org/python-bindings/](https://mlir.llvm.org/python-bindings/)). In [https://github.com/llvm/mlir-www/pull/245](https://github.com/llvm/mlir-www/pull/245), I introduced the Pygments lexer from the MLIR repository to enable syntax highlighting for MLIR code blocks in these API docs. However, since the existing Pygments lexer was fairly minimal, it didn’t fully handle all aspects of the MLIR syntax, leading to imperfect highlighting in some cases. In this PR, I used ChatGPT to rewrite the lexer by combining it with the TextMate grammar for MLIR ([https://github.com/llvm/llvm-project/blob/main/mlir/utils/textmate/mlir.json](https://github.com/llvm/llvm-project/blob/main/mlir/utils/textmate/mlir.json)). After some manual adjustments, the results look good—so I’m submitting this to improve the syntax highlighting experience in the Python bindings API documentation.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions