editor: Fix MoveToEnclosingBracket and unmatched forward/backward Vim motions in Markdown code blocks (#42813)
We now correctly use bracket ranges from the deepest syntax layer when finding enclosing brackets. Release Notes: - Fixed an issue where `MoveToEnclosingBracket` didn’t work correctly inside Markdown code blocks. - Fixed an issue where unmatched forward/backward Vim motions didn’t work correctly inside Markdown code blocks. --------- Co-authored-by: MuskanPaliwal <muskan10112002@gmail.com>
This commit is contained in:
co-authored by
MuskanPaliwal
parent
07cc87b288
commit
1683052e6c
@@ -0,0 +1,9 @@
|
||||
{"Exec":{"command":"set filetype=markdown"}}
|
||||
{"Put":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\nˇ }\n}\n```\n"}}
|
||||
{"Key":"["}
|
||||
{"Key":"{"}
|
||||
{"Get":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> ˇ{\n }\n}\n```\n","mode":"Normal"}}
|
||||
{"Put":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\n } ˇ\n}\n```\n"}}
|
||||
{"Key":"["}
|
||||
{"Key":"{"}
|
||||
{"Get":{"state":"```rs\nimpl Worktree ˇ{\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\n } \n}\n```\n","mode":"Normal"}}
|
||||
@@ -0,0 +1,9 @@
|
||||
{"Exec":{"command":"set filetype=markdown"}}
|
||||
{"Put":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\nˇ }\n}\n```\n"}}
|
||||
{"Key":"]"}
|
||||
{"Key":"}"}
|
||||
{"Get":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\n ˇ}\n}\n```\n","mode":"Normal"}}
|
||||
{"Put":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\n } ˇ\n}\n```\n"}}
|
||||
{"Key":"]"}
|
||||
{"Key":"}"}
|
||||
{"Get":{"state":"```rs\nimpl Worktree {\n pub async fn open_buffers(&self, path: &Path) -> impl Iterator<&Buffer> {\n } \nˇ}\n```\n","mode":"Normal"}}
|
||||
Reference in New Issue
Block a user