diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2026-08-03 21:52:33 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2026-08-03 21:52:33 -0500 |
| commit | 6705bdc69e1682982832ebea24e791581c44d0d2 (patch) | |
| tree | 48ec63b522c03f4e0b5abf6a2cd520dc96ba7eee /tests/fixtures/c | |
| parent | 21eb6acc2fdf0c43a2a1f6d4892cbd253909f82b (diff) | |
| download | trbldoc-6705bdc69e1682982832ebea24e791581c44d0d2.tar.gz trbldoc-6705bdc69e1682982832ebea24e791581c44d0d2.tar.bz2 trbldoc-6705bdc69e1682982832ebea24e791581c44d0d2.zip | |
Currently, comments need to be left-aligned, even if they appear
in an indented block. change the comment form to strip the
same whitespace as the first line so that comments can be indented
without embedding indents in the stdin.
Diffstat (limited to 'tests/fixtures/c')
| -rw-r--r-- | tests/fixtures/c/indented.c | 13 | ||||
| -rw-r--r-- | tests/fixtures/c/indented_tabs.c | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/fixtures/c/indented.c b/tests/fixtures/c/indented.c new file mode 100644 index 0000000..0b7a9f6 --- /dev/null +++ b/tests/fixtures/c/indented.c @@ -0,0 +1,13 @@ +enum my_enum { + /* md + @name my_enum/one + My explanation of type_one + */ + type_one = 1; + /* md + @name my_enum/two + My explanation of type_two + relative indented line + */ + type_two = 2; +} diff --git a/tests/fixtures/c/indented_tabs.c b/tests/fixtures/c/indented_tabs.c new file mode 100644 index 0000000..5340f83 --- /dev/null +++ b/tests/fixtures/c/indented_tabs.c @@ -0,0 +1,7 @@ +enum e { + /* md + @name e/a + Tab-indented body + */ + A = 1; +} |
