aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts45
1 files changed, 45 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
new file mode 100644
index 00000000000..5a4996f642e
--- /dev/null
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent-preproc.erts
@@ -0,0 +1,45 @@
1Code:
2 (lambda ()
3 (c-ts-mode)
4 (newline)
5 (indent-for-tab-command))
6
7Point-Char: |
8
9Name: Indents inside #if preproc
10
11=-=
12static void
13free_glyph_pool (struct glyph_pool *pool)
14{
15 if (pool)
16 {
17#if defined GLYPH_DEBUG|
18#endif
19 }
20}
21=-=
22static void
23free_glyph_pool (struct glyph_pool *pool)
24{
25 if (pool)
26 {
27#if defined GLYPH_DEBUG
28 |
29#endif
30 }
31}
32=-=-=
33
34Name: Indents to 0 if #if preproc at root
35
36=-=
37#if 0|
38/* */
39static void
40=-=
41#if 0
42|
43/* */
44static void
45=-=-=