Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Feb 12, 2024
1 parent 5c21eb1 commit 7633537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion papyri/ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
allowed_adorn = "=-`:.'\"~^_*+#<>"

try:
from tree_sitter_languages import get_language, get_parser
from tree_sitter_languages import get_parser

# language = get_language('python')
parser = get_parser("rst")
except ModuleNotFoundError:
assert False
# replace by tree-sitter-languages once it works See https://github.com/grantjenks/py-tree-sitter-languages/issues/15
try:
from tree_sitter import Language, Parser
Expand Down

0 comments on commit 7633537

Please sign in to comment.