aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYuan Fu2023-03-05 15:07:58 -0800
committerYuan Fu2023-03-05 15:07:58 -0800
commitd724d7d6785db7224b5a9f04b092d8671bddd290 (patch)
treef7e58534ea56f8b56b22dab7cd3a9e3c9499694e /test
parent7292b24c80143d697870a670963f136db375580b (diff)
downloademacs-d724d7d6785db7224b5a9f04b092d8671bddd290.tar.gz
emacs-d724d7d6785db7224b5a9f04b092d8671bddd290.zip
Fix c-ts-mode indentation
Mentioned in bug#61893, although not the subject of it. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--anchor-prev-sibling): Fix the child index for preproc_else and preproc_elif case. * test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts: New test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts b/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts
index 0f9256ad984..a82596e0010 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts
@@ -78,3 +78,19 @@ free_glyph_pool (struct glyph_pool *pool)
78 } 78 }
79} 79}
80=-=-= 80=-=-=
81
82Name: Prev-Sibling Plus Preproc
83
84=-=-=
85int main() {
86#ifdef MSDOS
87 f->output_data.tty = &the_only_tty_output;
88 f->output_data.tty->display_info = &the_only_display_info;
89#else
90 if (f->output_method == output_termcap)
91 create_tty_output (f);
92#endif
93 t->display_info.tty->top_frame = selected_frame;
94 change_frame_size ();
95}
96=-=-=