diff options
| author | Eli Zaretskii | 2024-10-12 05:53:27 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-12 05:53:27 -0400 |
| commit | bb5b25181ea7a4393f019dc641a981bdb6687c62 (patch) | |
| tree | 678a5f622075e4cb031764d67af0ec620276fd5d /test | |
| parent | 16e835171a8ce388e581174925e47263e864727d (diff) | |
| parent | 0f8f0773183a07a229b23d3f970723ceb9585aef (diff) | |
| download | emacs-bb5b25181ea7a4393f019dc641a981bdb6687c62.tar.gz emacs-bb5b25181ea7a4393f019dc641a981bdb6687c62.zip | |
Merge from origin/emacs-30
0f8f0773183 ; * doc/emacs/search.texi (Word Search): Document 'dictio...
fb155bcfb6f ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Doc fix.
6dbe4e99ac4 ; * lisp/emacs-lisp/chart.el (chart-bar-quickie): Improve...
d664227f81a ; More accurate documentation of 'file-newer-than-file-p'
e49b479f869 Fix c-ts-mode indentation for initializer lists (bug#73661)
f520008744b Avoid segfaults in Rmail-MIME
6a5c2edd84f Eglot: use :immediate t when resolving completions (bug#7...
cd36e070c24 Eglot: minor changes to doc and docstrings
1ea0d9b891b Revert "Set treesit-primary-parser for tree-sitter modes"
52746ceb625 Remove duplicate indent rules in elixir-ts-mode
ed57faafc74 Set treesit-primary-parser for tree-sitter modes
37a6c859b04 ; * lisp/emacs-lisp/cl-macs.el (cl-once-only): Fix capita...
2d4d6dc43a4 Delete XIE X extension from TODO
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/c-ts-mode-resources/indent.erts | 39 |
1 files changed, 39 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 599173832b5..a13a74cf8b3 100644 --- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts | |||
| @@ -208,6 +208,21 @@ int main() | |||
| 208 | } | 208 | } |
| 209 | =-=-= | 209 | =-=-= |
| 210 | 210 | ||
| 211 | Name: Return Compund Literal | ||
| 212 | |||
| 213 | =-= | ||
| 214 | struct pair { int fst, snd; }; | ||
| 215 | struct pair | ||
| 216 | make_pair(int long_identifier_a[], int long_identifier_b[], | ||
| 217 | int offset_a, int offset_b) | ||
| 218 | { | ||
| 219 | int base_offset = 10; | ||
| 220 | return (struct pair) { long_identifier_a[base_offset + offset_b], | ||
| 221 | long_identifier_b[base_offset + offset_b] }; | ||
| 222 | } | ||
| 223 | |||
| 224 | =-=-= | ||
| 225 | |||
| 211 | Name: Switch-Case statement | 226 | Name: Switch-Case statement |
| 212 | 227 | ||
| 213 | =-= | 228 | =-= |
| @@ -486,6 +501,30 @@ namespace A { | |||
| 486 | } | 501 | } |
| 487 | =-=-= | 502 | =-=-= |
| 488 | 503 | ||
| 504 | Name: Return Aggregate Initialized Struct | ||
| 505 | |||
| 506 | =-= | ||
| 507 | struct pair { int x, y; } | ||
| 508 | pair | ||
| 509 | make_pair(int long_identifier_a[], int long_identifier_b[], | ||
| 510 | int offset_a, int offset_b) | ||
| 511 | { | ||
| 512 | int base_offset = 10; | ||
| 513 | return { long_identifier_a[base_offset + offset_b], | ||
| 514 | long_identifier_b[base_offset + offset_b] }; | ||
| 515 | } | ||
| 516 | =-= | ||
| 517 | struct pair { int x, y; } | ||
| 518 | pair | ||
| 519 | make_pair(int long_identifier_a[], int long_identifier_b[], | ||
| 520 | int offset_a, int offset_b) | ||
| 521 | { | ||
| 522 | int base_offset = 10; | ||
| 523 | return { long_identifier_a[base_offset + offset_b], | ||
| 524 | long_identifier_b[base_offset + offset_b] }; | ||
| 525 | } | ||
| 526 | =-=-= | ||
| 527 | |||
| 489 | Code: | 528 | Code: |
| 490 | (lambda () | 529 | (lambda () |
| 491 | (c-ts-mode) | 530 | (c-ts-mode) |