diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-01-16 11:02:16 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 14:27:24 +0100 |
| commit | cca7d1d671348369ae4930bc723feeff5b6f34ae (patch) | |
| tree | 8882e0682b037dba2a81447ad847c45f3f8153ee | |
| parent | chore: only use *.glsl for GLSL (diff) | |
| download | nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar.gz nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar.bz2 nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar.lz nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar.xz nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.tar.zst nvim-treesitter-cca7d1d671348369ae4930bc723feeff5b6f34ae.zip | |
fix(swift): switch to maintained parser
upstream https://github.com/tree-sitter/tree-sitter-swift is abandoned.
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | lockfile.json | 2 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 5 |
3 files changed, 5 insertions, 4 deletions
@@ -235,7 +235,7 @@ We are looking for maintainers to add more parsers and to write query files for - [x] [supercollider](https://github.com/madskjeldgaard/tree-sitter-supercollider) (maintained by @madskjeldgaard) - [x] [surface](https://github.com/connorlay/tree-sitter-surface) (maintained by @connorlay) - [x] [svelte](https://github.com/Himujjal/tree-sitter-svelte) (maintained by @elianiva) -- [ ] [swift](https://github.com/tree-sitter/tree-sitter-swift) +- [x] [swift](https://github.com/alex-pinkus/tree-sitter-swift) - [x] [teal](https://github.com/euclidianAce/tree-sitter-teal) (maintained by @euclidianAce) - [x] [tlaplus](https://github.com/tlaplus-community/tree-sitter-tlaplus) (maintained by @ahelwer) - [x] [toml](https://github.com/ikatyang/tree-sitter-toml) (maintained by @tk-shirasaka) diff --git a/lockfile.json b/lockfile.json index 885933612..d8b84f960 100644 --- a/lockfile.json +++ b/lockfile.json @@ -237,7 +237,7 @@ "revision": "98274d94ec33e994e8354d9ddfdef58cca471294" }, "swift": { - "revision": "a22fa5e19bae50098e2252ea96cba3aba43f4c58" + "revision": "05e21aac6b3abefd94cf7f01665390307820eecd" }, "teal": { "revision": "fcc5f6f4d194dede4e676834ff28a506e39e17b4" diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 7352bae73..314efab46 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -370,9 +370,10 @@ list.ocamllex = { list.swift = { install_info = { - url = "https://github.com/tree-sitter/tree-sitter-swift", - files = { "src/parser.c" }, + url = "https://github.com/alex-pinkus/tree-sitter-swift", + files = { "src/parser.c", "src/scanner.c" }, requires_generate_from_grammar = true, + generate_requires_npm = true, }, } |
