From c70daa36dcc2fdae113637fba76350daaf62dba5 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 21 Apr 2024 00:14:12 +0200 Subject: 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 --- runtime/queries/rust/indents.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/queries/rust') 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 -- cgit v1.2.3-70-g09d2