[vim/vim] cindent: closing brace in a line comment affects the next line's indent (PR #20458)

1 view
Skip to first unread message

h_east

unread,
2:12 PM (8 hours ago) 2:12 PM
to vim/vim, Subscribed
Problem:  A '}' inside a // line comment changes the indentation of the
          following line inside an enum or struct (rendcrx).
Solution: Stop scanning the line once a line comment is reached, so a brace
          inside the comment is no longer mistaken for an unmatched brace.

fixes: #20455


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20458

Commit Summary

  • 20f16e5 cindent: closing brace in a line comment affects the next line's indent

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20458@github.com>

Christian Brabandt

unread,
3:35 PM (7 hours ago) 3:35 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20458)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20458/c4663343983@github.com>

Reply all
Reply to author
Forward
0 new messages