Skip to content

Conversation

@fixeria
Copy link
Contributor

@fixeria fixeria commented Nov 12, 2025

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

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
@hcs42
Copy link
Contributor

hcs42 commented Nov 12, 2025

@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.)

@chrisbra
Copy link
Member

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

thanks, let me do you a favor ;)

@chrisbra chrisbra closed this in e9d296e Nov 12, 2025
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Nov 12, 2025
…ondit in syntax script

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

closes: vim/vim#18729

vim/vim@e9d296e

Co-authored-by: Vadim Yanitskiy <fixeria@osmocom.org>
zeertzjq added a commit to neovim/neovim that referenced this pull request Nov 12, 2025
…ondit in syntax script (#36542)

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

closes: vim/vim#18729

vim/vim@e9d296e

Co-authored-by: Vadim Yanitskiy <fixeria@osmocom.org>
@fixeria
Copy link
Contributor Author

fixeria commented Nov 13, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants