Skip to content

Commit

Permalink
Add Bazel bzlmod support into Python lexer (#947)
Browse files Browse the repository at this point in the history
https://bazel.build/concepts/build-ref

"such a boundary marker file could be MODULE.bazel, REPO.bazel, or in
legacy contexts, WORKSPACE or WORKSPACE.bazel."
  • Loading branch information
farcop committed Mar 13, 2024
1 parent bd47355 commit 2580aaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lexers/embedded/python.xml
Expand Up @@ -19,6 +19,10 @@
<filename>BUILD</filename>
<filename>BUILD.bazel</filename>
<filename>WORKSPACE</filename>
<filename>WORKSPACE.bzlmod</filename>
<filename>WORKSPACE.bazel</filename>
<filename>MODULE.bazel</filename>
<filename>REPO.bazel</filename>
<filename>*.tac</filename>
<mime_type>text/x-python</mime_type>
<mime_type>application/x-python</mime_type>
Expand Down Expand Up @@ -586,4 +590,4 @@
</rule>
</state>
</rules>
</lexer>
</lexer>

0 comments on commit 2580aaa

Please sign in to comment.