diff options
| author | Yuan Fu | 2023-02-12 19:49:47 -0800 |
|---|---|---|
| committer | Yuan Fu | 2023-02-12 19:49:47 -0800 |
| commit | f2114e8d89feed154a1c523c925ff2fb9fa9ba9a (patch) | |
| tree | 4ee8ce83571c51110ba0a1742bb8726ee8440c75 /test | |
| parent | f49caaa892576e5fa95373c38e6a99904249551c (diff) | |
| download | emacs-f2114e8d89feed154a1c523c925ff2fb9fa9ba9a.tar.gz emacs-f2114e8d89feed154a1c523c925ff2fb9fa9ba9a.zip | |
Fix indentation for closing bracket in c-ts-mode (bug#61398)
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Move the rule earlier.
(c-ts-base-mode): Add move block type.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New tests.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/c-ts-mode-resources/indent.erts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent.erts b/test/lisp/progmodes/c-ts-mode-resources/indent.erts index 21b84c2e7e3..05d59c10a42 100644 --- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts | |||
| @@ -182,6 +182,20 @@ else if (false) | |||
| 182 | return 3; | 182 | return 3; |
| 183 | =-=-= | 183 | =-=-= |
| 184 | 184 | ||
| 185 | Name: Initializer List (Bug#61398) | ||
| 186 | |||
| 187 | =-= | ||
| 188 | int main() | ||
| 189 | { | ||
| 190 | const char *emoticons[][2] = | ||
| 191 | { | ||
| 192 | {":-)", "SLIGHTLY SMILING FACE"}, | ||
| 193 | {";-)", "WINKING FACE"}, | ||
| 194 | {":-(", "SLIGHTLY FROWNING FACE"}, | ||
| 195 | }; | ||
| 196 | } | ||
| 197 | =-=-= | ||
| 198 | |||
| 185 | Name: Multiline Block Comments 1 (bug#60270) | 199 | Name: Multiline Block Comments 1 (bug#60270) |
| 186 | 200 | ||
| 187 | =-= | 201 | =-= |
| @@ -327,3 +341,16 @@ void foo( | |||
| 327 | } | 341 | } |
| 328 | } | 342 | } |
| 329 | =-=-= | 343 | =-=-= |
| 344 | |||
| 345 | Name: Initializer List (Linux Style) (Bug#61398) | ||
| 346 | |||
| 347 | =-= | ||
| 348 | int main() | ||
| 349 | { | ||
| 350 | const char *emoticons[][2] = { | ||
| 351 | {":-)", "SLIGHTLY SMILING FACE"}, | ||
| 352 | {";-)", "WINKING FACE"}, | ||
| 353 | {":-(", "SLIGHTLY FROWNING FACE"}, | ||
| 354 | }; | ||
| 355 | } | ||
| 356 | =-=-= | ||