summaryrefslogtreecommitdiff
path: root/test/lisp/textmodes/css-mode-resources/css-selectors.txt
diff options
context:
space:
mode:
authornverno <noah.v.peart@gmail.com>2023-11-21 16:33:04 -0800
committerYuan Fu <casouri@gmail.com>2023-12-10 01:05:22 -0800
commit08fc6bace202a13d93fc76943c41f19acaab9c73 (patch)
tree8cf452ecf590a8df8e08008ecefcdb1795b7a540 /test/lisp/textmodes/css-mode-resources/css-selectors.txt
parent71bc2815ccdf443d49865ea913048658a6634823 (diff)
downloademacs-08fc6bace202a13d93fc76943c41f19acaab9c73.tar.gz
emacs-08fc6bace202a13d93fc76943c41f19acaab9c73.tar.bz2
emacs-08fc6bace202a13d93fc76943c41f19acaab9c73.zip
Fix c-ts-mode indentation (bug#67357)
1. In a compund_statement, we indent the first sibling against the parent, and the rest siblings against their previous sibling. But this strategy falls apart when the first sibling is not on its own line. We should regard the first sibling that is on its own line as the "first sibling"", and indent it against the parent. 2. In linux style, in a do-while statement, if the do-body is bracket-less, the "while" keyword is indented to the same level as the do-body. It should be indented to align with the "do" keyword instead. * lisp/progmodes/c-ts-mode.el: (c-ts-mode--no-prev-standalone-sibling): New function. (c-ts-mode--indent-styles): Use c-ts-mode--no-prev-standalone-sibling. Add while keyword indent rule. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New tests.
Diffstat (limited to 'test/lisp/textmodes/css-mode-resources/css-selectors.txt')
0 files changed, 0 insertions, 0 deletions