[vim/vim] runtime(erlang): recognize -if/-elif as erlangPreCondit (PR #18729)

1 view
Skip to first unread message

fixeria

unread,
Nov 12, 2025, 7:52:19 AM (21 hours ago) Nov 12
to vim/vim, Subscribed

The -if(Condition)/-elif(Condition) are compiler macros that evaluate the following lines only if Condition evaluates to true. This patch enables syntax highlighting for these macros.

https://www.erlang.org/doc/system/macros.html#conditional-compilation


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

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

Commit Summary

  • 5b66d2e runtime(erlang): recognize -if/-elif as erlangPreCondit

File Changes

(1 file)

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/18729@github.com>

Csaba Hoch

unread,
Nov 12, 2025, 12:20:44 PM (16 hours ago) Nov 12
to vim/vim, Subscribed
hcs42 left a comment (vim/vim#18729)

@fixeria Thank you!

I tested the change and it works well. I'm ok with merging it. (I'm not sure who will do that.)


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/18729/c3523034136@github.com>

Christian Brabandt

unread,
Nov 12, 2025, 2:37:00 PM (14 hours ago) Nov 12
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18729)

I'm ok with merging it. (I'm not sure who will do that.)

thanks, let me do you a favor ;)


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/18729/c3523589062@github.com>

Christian Brabandt

unread,
Nov 12, 2025, 2:38:52 PM (14 hours ago) Nov 12
to vim/vim, Subscribed

Closed #18729 via e9d296e.


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/18729/issue_event/20897079769@github.com>

fixeria

unread,
4:33 AM (9 minutes ago) 4:33 AM
to vim/vim, Subscribed
fixeria left a comment (vim/vim#18729)

Thank you for accepting and merging the patch! This is my first (and hopefully not the last) contribution to vim.


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/18729/c3526753568@github.com>

Reply all
Reply to author
Forward
0 new messages