Skip to content

Commit 66db21b

Browse files
committed
👽 Adapt python-tree-sitter 0.23.0
Fix #22
1 parent 5fe8b6a commit 66db21b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
args:
4040
- --msg-filename
4141
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
42-
rev: 2.7.3
42+
rev: 3.0.3
4343
hooks:
4444
- id: editorconfig-checker
4545
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -51,7 +51,7 @@ repos:
5151
exclude_types:
5252
- zsh
5353
- repo: https://github.com/rhysd/actionlint
54-
rev: v1.7.1
54+
rev: v1.7.2
5555
hooks:
5656
- id: actionlint
5757
- repo: https://github.com/adrienverge/yamllint
@@ -73,22 +73,22 @@ repos:
7373
- mdformat-config
7474
- mdformat-web
7575
- repo: https://github.com/DavidAnson/markdownlint-cli2
76-
rev: v0.13.0
76+
rev: v0.14.0
7777
hooks:
7878
- id: markdownlint-cli2
7979
additional_dependencies:
8080
- markdown-it-texmath
8181
- repo: https://github.com/scop/pre-commit-shfmt
82-
rev: v3.8.0-1
82+
rev: v3.9.0-1
8383
hooks:
8484
- id: shfmt
8585
- repo: https://github.com/astral-sh/ruff-pre-commit
86-
rev: v0.5.4
86+
rev: v0.6.7
8787
hooks:
8888
- id: ruff
8989
- id: ruff-format
9090
- repo: https://github.com/kumaraditya303/mirrors-pyright
91-
rev: v1.1.372
91+
rev: v1.1.381
9292
hooks:
9393
- id: pyright
9494

src/termux_language_server/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313

1414
SCHEMAS = {}
1515
QUERIES = {}
16-
language = Language(get_language_ptr())
1716
parser = Parser()
18-
parser.set_language(language)
17+
parser.language = Language(get_language_ptr())
1918

2019

2120
def get_query(name: str, filetype: str = "bash") -> Query:
@@ -37,7 +36,7 @@ def get_query(name: str, filetype: str = "bash") -> Query:
3736
)
3837
) as f:
3938
text = f.read()
40-
QUERIES[name] = language.query(text)
39+
QUERIES[name] = parser.language.query(text)
4140
return QUERIES[name]
4241

4342

0 commit comments

Comments
 (0)