bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61238: [PATCH] Fix go-ts-mode type switch and select case blocks ind


From: Davide Masserut
Subject: bug#61238: [PATCH] Fix go-ts-mode type switch and select case blocks indentation
Date: Thu, 02 Feb 2023 21:37:06 +0100

Tags: patch

This patch add indentation for Go type switch and select case blocks.

Current behavior
```
        var x any
        switch x.(type) {
        case int:
        println(x)
        }

        var c chan int
        select {
        case x := <-c:
        println(x)
        }
```

Correct behavior
```
        var x any
        switch x.(type) {
        case int:
                println(x)
        }

        var c chan int
        select {
        case x := <-c:
                println(x)
        }
```



In GNU Emacs 30.0.50 (build 14, x86_64-pc-linux-gnu, GTK+ Version
3.24.36, cairo version 1.17.6) of 2023-02-02 built on T480s
Repository revision: bfd338aad9d1e6bf898fc19d23e1a5ca4e696316
Repository branch: master
System Description: Arch Linux

Configured using:
'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
--localstatedir=/var --with-pgtk --with-native-compilation
'CFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -g
-ffile-prefix-map=/home/davide/src/emacs-mssdvd-git/src=/usr/src/debug/emacs-mssdvd-git'
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
'CXXFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g
-ffile-prefix-map=/home/davide/src/emacs-mssdvd-git/src=/usr/src/debug/emacs-mssdvd-git''

Attachment: 0001-Fix-go-ts-mode-type-switch-and-select-case-blocks-in.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]