projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85705a7
)
rust-ts-mode--indent-rules: Indent to 0 at top level
author
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 5 Feb 2023 16:19:04 +0000
(18:19 +0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 5 Feb 2023 16:50:23 +0000
(18:50 +0200)
lisp/progmodes/rust-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/rust-ts-mode.el
b/lisp/progmodes/rust-ts-mode.el
index e46fa0342dd9b6ba725b8d3a7674cf5640e5322e..f7a8a97cc5aaba8158a79bddb4eb5a38ad5ce60b 100644
(file)
--- a/
lisp/progmodes/rust-ts-mode.el
+++ b/
lisp/progmodes/rust-ts-mode.el
@@
-69,6
+69,7
@@
(defvar rust-ts-mode--indent-rules
`((rust
+ ((parent-is "source_file") point-min 0)
((node-is ")") parent-bol 0)
((node-is "]") parent-bol 0)
((node-is "}") (and parent parent-bol) 0)