[vim/vim] cindent: fix comment lines which start like a label (PR #19397)

1 view
Skip to first unread message

aerkkila

unread,
Feb 13, 2026, 1:43:46 PM (yesterday) Feb 13
to vim/vim, Subscribed

Problem: Comment lines which start like a label are recognized as a label and indented based on that.

Solution Check if the position is in a comment after recognizing a label in cin_islabel.


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

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

Commit Summary

  • 38044fe cindent: fix comment lines which start like a label

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19397@github.com>

Reply all
Reply to author
Forward
0 new messages