aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-21 00:14:12 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commitc70daa36dcc2fdae113637fba76350daaf62dba5 (patch)
treeda900b9db77fdc25d66d545c088d1c0b858a5d87 /runtime
parentfix: do not use vim.iter (#6469) (diff)
downloadnvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar.gz
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar.bz2
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar.lz
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar.xz
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.tar.zst
nvim-treesitter-c70daa36dcc2fdae113637fba76350daaf62dba5.zip
feat(install)!: add explicit path field to parser info (#6476)
Problem: Using `url` for both remote repo and local path complicates the code. Solution: Add `path` field that overrides `url` and bypasses git-specific manipulations, i.e., the contents of the `path` are used as-is (no git repo needed). This means `:TSUpdate` will skip such parsers; use `:TSInstall!` instead after making local changes. --------- Co-authored-by: Lewis Russell <lewis6991@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/rust/indents.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queries/rust/indents.scm b/runtime/queries/rust/indents.scm
index 9fe337d5c..934d1c169 100644
--- a/runtime/queries/rust/indents.scm
+++ b/runtime/queries/rust/indents.scm
@@ -91,6 +91,7 @@
(tuple_struct_pattern
")" @indent.end)
+
; Typing in "(" inside macro definitions breaks the tree entirely
; Making macro_definition becoming errors
; Offset this by adding back one indent for start of macro rules