summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBenjamin Moody <benjaminmoody@gmail.com>2024-11-02 20:22:27 -0400
committerBenjamin Moody <benjaminmoody@gmail.com>2024-11-02 20:22:27 -0400
commit36430829381e803cb5870a11674d4982738cbad9 (patch)
tree9819ab9fe9d10726e218675158df7dc7f2130cbb /.github/workflows
parent3bd0863f28414e629ca15ad2852a429a126226c5 (diff)
downloadrust-mode-36430829381e803cb5870a11674d4982738cbad9.tar.gz
rust-doc-indent-line: new function.
This can be used as the indent-line-function, as an alternative to rust-mode-indent-line. In addition to indenting the current line as rust-mode-indent-line does, it also checks to see whether we are editing a Markdown code block inside a comment (either a documentation comment or a normal comment.) If we are inside a Markdown code block, it extracts that code block, treats it as Rust code, and indents the current line accordingly. Note that this behavior is only triggered if point is inside the comment body: placing point at the start of the line and pressing tab will only re-indent the comment line, but placing point at the end of the line and pressing tab will re-indent the both comment line and its contents.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions