projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0862a79
)
; go-ts-mode--indent-rules: Indent to 0 at top level
author
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 5 Feb 2023 16:52:57 +0000
(18:52 +0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 5 Feb 2023 16:53:44 +0000
(18:53 +0200)
lisp/progmodes/go-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/go-ts-mode.el
b/lisp/progmodes/go-ts-mode.el
index 4b14e55281e5db27627d16258664aedbfa27e00e..e5b7bcca9aa6564c5d8950112b4c7368c6265d7b 100644
(file)
--- a/
lisp/progmodes/go-ts-mode.el
+++ b/
lisp/progmodes/go-ts-mode.el
@@
-66,6
+66,7
@@
(defvar go-ts-mode--indent-rules
`((go
+ ((parent-is "source_file") point-min 0)
((node-is ")") parent-bol 0)
((node-is "]") parent-bol 0)
((node-is "}") parent-bol 0)