diff options
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.erts | 45 |
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 @@ | |||
| 1 | Code: | ||
| 2 | (lambda () | ||
| 3 | (c-ts-mode) | ||
| 4 | (newline) | ||
| 5 | (indent-for-tab-command)) | ||
| 6 | |||
| 7 | Point-Char: | | ||
| 8 | |||
| 9 | Name: Indents inside #if preproc | ||
| 10 | |||
| 11 | =-= | ||
| 12 | static void | ||
| 13 | free_glyph_pool (struct glyph_pool *pool) | ||
| 14 | { | ||
| 15 | if (pool) | ||
| 16 | { | ||
| 17 | #if defined GLYPH_DEBUG| | ||
| 18 | #endif | ||
| 19 | } | ||
| 20 | } | ||
| 21 | =-= | ||
| 22 | static void | ||
| 23 | free_glyph_pool (struct glyph_pool *pool) | ||
| 24 | { | ||
| 25 | if (pool) | ||
| 26 | { | ||
| 27 | #if defined GLYPH_DEBUG | ||
| 28 | | | ||
| 29 | #endif | ||
| 30 | } | ||
| 31 | } | ||
| 32 | =-=-= | ||
| 33 | |||
| 34 | Name: Indents to 0 if #if preproc at root | ||
| 35 | |||
| 36 | =-= | ||
| 37 | #if 0| | ||
| 38 | /* */ | ||
| 39 | static void | ||
| 40 | =-= | ||
| 41 | #if 0 | ||
| 42 | | | ||
| 43 | /* */ | ||
| 44 | static void | ||
| 45 | =-=-= | ||