Skip to content

Commit

Permalink
Merge pull request #9 from Virtlink/master
Browse files Browse the repository at this point in the history
Since Minted 2.6 the pygments macro is always \PYG
  • Loading branch information
ChielBruin authored Mar 23, 2022
2 parents 7c3b560 + b9837e0 commit ffb2286
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spoofax-pygments/spoofax_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ class ExtraStyle(EmptyStyle, metaclass=StyleMeta):
outfile.write("{\n")

# Make sure that the settings for writing custom style commands (see next block) has the right settings.
# The command prefix is `PYGdefault` when no style has been set using `\usemintedstyle`.
# The command prefix is `PYG` when no style has been set using `\usemintedstyle`.
cp = self.commandprefix
cp = (cp + "default") if cp == "PYG" else cp
self.options["commandprefix"] = cp
self.options["style"] = ExtraStyle

Expand Down

0 comments on commit ffb2286

Please sign in to comment.