Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: termux/termux-language-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd9ee0fd329e674baf239368b62f34c03454b959
Choose a base ref
..
head repository: termux/termux-language-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac23efa4195f53595013ac42ef3bfe2c82ded635
Choose a head ref
Showing with 14 additions and 18 deletions.
  1. +2 −2 .pre-commit-config.yaml
  2. +1 −1 pyproject.toml
  3. +2 −2 src/termux_language_server/__main__.py
  4. +8 −12 src/termux_language_server/assets/json/PKGBUILD.json
  5. +1 −1 src/termux_language_server/utils.py
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -83,12 +83,12 @@ repos:
hooks:
- id: shfmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
rev: v0.3.3
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/kumaraditya303/mirrors-pyright
rev: v1.1.353
rev: v1.1.354
hooks:
- id: pyright

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ classifiers = [
dynamic = ["version", "dependencies", "optional-dependencies"]

[[project.authors]]
name = "Wu Zhenyu"
name = "Wu, Zhenyu"
email = "wuzhenyu@ustc.edu"

[project.license]
4 changes: 2 additions & 2 deletions src/termux_language_server/__main__.py
Original file line number Diff line number Diff line change
@@ -11,12 +11,12 @@
try:
import shtab
except ImportError:
import _shtab as shtab
from . import _shtab as shtab

NAME = NAME.replace("_", "-")
VERSION = rf"""{NAME} {__version__}
Copyright (C) {datetime.now().year}
Written by Wu Zhenyu
Written by Wu, Zhenyu
"""
EPILOG = """
Report bugs to <wuzhenyu@ustc.edu>.
20 changes: 8 additions & 12 deletions src/termux_language_server/assets/json/PKGBUILD.json
Original file line number Diff line number Diff line change
@@ -721,49 +721,49 @@
"type": "array",
"items": {
"type": "string"
},
}
},
"sha1sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"sha224sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"sha256sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"sha384sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"sha512sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"b2sums": {
"description": "Alternative integrity checks that makepkg supports; these all behave similar to the cksums option described above. To enable use and generation of these checksums, be sure to set up the INTEGRITY_CHECK option in **makepkg.conf**(5).",
"type": "array",
"items": {
"type": "string"
},
}
},
"groups": {
"description": "An array of symbolic names that represent groups of packages, allowing you to install multiple packages by requesting a single target. For example, one could install all KDE packages by installing the *kde* group.",
@@ -910,16 +910,12 @@
},
"uniqueItems": true
},
"msys2_internal": {
"type": "boolean",
"description": "Whether the package is an internal or meta package and shouldn't be linked to external sources. Defaults to false."
},
"msys2_references": {
"type": "array",
"description": "Maps the package to external resources, such as other package repositories.",
"items": {
"type": "string",
"pattern": "(archlinux|aur|cygwin|cygwin-mingw64|pypi)(|: .*)"
"pattern": "(archlinux|aur|cygwin|cygwin-mingw64|pypi|gentoo|internal)(|: .*)"
},
"uniqueItems": true
},
2 changes: 1 addition & 1 deletion src/termux_language_server/utils.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import os
from typing import Any, Literal

from tree_sitter.binding import Query
from tree_sitter import Query
from tree_sitter_languages import get_language

from . import FILETYPE