Skip to content

Commit

Permalink
Prioritizing pygments.lexers.sql.SqlLexer
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Apr 7, 2023
1 parent d172580 commit d52c22f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion render50
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ signal(SIGINT, lambda signum, frame: sys.exit(1))

import io
import os
import pygments.lexers.sql
import re
import sys
import requests
import sys
import termcolor

from argparse import ArgumentParser
Expand Down Expand Up @@ -44,6 +45,10 @@ except DistributionNotFound:
else:
__version__ = d.version

# Prioritize these languages
# https://github.com/pygments/pygments/issues/2405
pygments.lexers.sql.SqlLexer.priority = 1


def main():

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
python_requires=">=3.6",
scripts=["render50"],
url="https://github.com/cs50/render50",
version="9.1.0"
version="9.1.1"
)

0 comments on commit d52c22f

Please sign in to comment.