mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tree-sitter upgrade (#5320)
* Using separate language packages and update lockfile * Fixing some but not all languages * Theme updates * More theme fixes * Improving the VS Code theme * Fixes * Fixing CSS rendering * Fixing SQL and JavaScript highlight queries * Update GitHub Actions to run syntax highlighting tests on 3.13, and avoid those tests on 3.8. * Update CHANGELOG and remove `SyntaxAwareDocument.language_name` property. * Remove unused Kotlin language syntax highlighting snapshot * Update CHANGELOG to note that Kotlin syntax highlighting was removed * Bail out of TextArea.language watcher early if tree-sitter is not installed * Skip a test on 3.8 as it relates to syntax highlighting (tree-sitter) being available
This commit is contained in:
@@ -46,12 +46,48 @@ markdown-it-py = { extras = ["plugins", "linkify"], version = ">=2.1.0" }
|
||||
rich = ">=13.3.3"
|
||||
#rich = {path="../rich", develop=true}
|
||||
typing-extensions = "^4.4.0"
|
||||
tree-sitter = { version = "^0.20.1", optional = true }
|
||||
tree-sitter-languages = { version = "1.10.2", optional = true }
|
||||
platformdirs = ">=3.6.0,<5"
|
||||
|
||||
# start of [syntax] extras
|
||||
# Require tree-sitter >= 0.23.0 and python >= 3.9
|
||||
# Windows, MacOS and Linux binary wheels are available for all of the languages below.
|
||||
tree-sitter = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-python = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-markdown = { version = ">=0.3.0", optional = true, python = ">=3.9"}
|
||||
tree-sitter-json = { version = ">=0.24.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-toml = { version = ">=0.6.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-yaml = { version = ">=0.6.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-html = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-css = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-javascript = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-rust = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-go = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-regex = { version = ">=0.24.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-xml = { version = ">=0.7.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-sql = { version = ">=0.3.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-java = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
tree-sitter-bash = { version = ">=0.23.0", optional = true, python = ">=3.9" }
|
||||
# end of [syntax] extras
|
||||
|
||||
[tool.poetry.extras]
|
||||
syntax = ["tree-sitter", "tree_sitter_languages"]
|
||||
syntax = [
|
||||
"tree-sitter",
|
||||
"tree-sitter-python",
|
||||
"tree-sitter-markdown",
|
||||
"tree-sitter-json",
|
||||
"tree-sitter-toml",
|
||||
"tree-sitter-yaml",
|
||||
"tree-sitter-html",
|
||||
"tree-sitter-css",
|
||||
"tree-sitter-javascript",
|
||||
"tree-sitter-rust",
|
||||
"tree-sitter-go",
|
||||
"tree-sitter-regex",
|
||||
"tree-sitter-xml",
|
||||
"tree-sitter-sql",
|
||||
"tree-sitter-java",
|
||||
"tree-sitter-bash",
|
||||
]
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "24.4.2"
|
||||
@@ -72,8 +108,6 @@ pytest-asyncio = "*"
|
||||
pytest-cov = "^5.0.0"
|
||||
textual-dev = "^1.7.0"
|
||||
types-setuptools = "^67.2.0.1"
|
||||
types-tree-sitter = "^0.20.1.4"
|
||||
types-tree-sitter-languages = "^1.7.0.1"
|
||||
isort = "^5.13.2"
|
||||
pytest-textual-snapshot = "^1.0.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user