summaryrefslogtreecommitdiff
path: root/lisp/progmodes/go-ts-mode.el
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-06-23 15:37:04 +0200
committerTheodor Thornhill <theo@thornhill.no>2023-06-23 15:38:01 +0200
commitd507aa7336b0a295a1fde1676c1606ae7f836a95 (patch)
tree4492c500ef1af4efe270b91e10e03638793c93b7 /lisp/progmodes/go-ts-mode.el
parent1f664a0af758b2d458d9c7edf063adf5de8be7c4 (diff)
downloademacs-d507aa7336b0a295a1fde1676c1606ae7f836a95.tar.gz
emacs-d507aa7336b0a295a1fde1676c1606ae7f836a95.tar.bz2
emacs-d507aa7336b0a295a1fde1676c1606ae7f836a95.zip
Add selector_expression indentation rule
* lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules): New rule.
Diffstat (limited to 'lisp/progmodes/go-ts-mode.el')
-rw-r--r--lisp/progmodes/go-ts-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index 698c6424ea2..f8e65131e0c 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -79,6 +79,7 @@
((parent-is "const_declaration") parent-bol go-ts-mode-indent-offset)
((parent-is "default_case") parent-bol go-ts-mode-indent-offset)
((parent-is "expression_case") parent-bol go-ts-mode-indent-offset)
+ ((parent-is "selector_expression") parent-bol go-ts-mode-indent-offset)
((parent-is "expression_switch_statement") parent-bol 0)
((parent-is "field_declaration_list") parent-bol go-ts-mode-indent-offset)
((parent-is "import_spec_list") parent-bol go-ts-mode-indent-offset)