Skip to content

Commit d687dfe

Browse files
authored
[bazel] expose MLIR Pygments lexer to bazel overlay (#158604)
[This existing tool](https://github.com/llvm/llvm-project/tree/main/mlir/utils/pygments) allows us to do code highlighting for MLIR, e.g., for use in docs. However, it is not currently exposed to Bazel. Here, I do this using `exports_files`, and rely on the user to create a `py_library`.
1 parent a6585b0 commit d687dfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ exports_files([
2929
"LICENSE.TXT",
3030
"run_lit.sh",
3131
"utils/lldb-scripts/mlirDataFormatters.py",
32+
"utils/pygments/mlir_lexer.py",
3233
"utils/textmate/mlir.json",
3334
])
3435

0 commit comments

Comments
 (0)