runtime(odin): add new keywords to syntax script Commit: https://github.com/vim/vim/commit/e9a369f9c3893846cb720905d171b6774b1d658b Author: Maxim Kim <haba...@gmail.com> Date: Sun Mar 30 15:00:00 2025 +0200
runtime(odin): add new keywords to syntax script closes: https://github.com/vim/vim/issues/17012 Signed-off-by: Maxim Kim <haba...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS index f0d11a38f..1c0861b29 100644 --- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -562,6 +562,7 @@ runtime/syntax/ninja.vim @nico runtime/syntax/nix.vim @equill runtime/syntax/nroff.vim @jmarshall runtime/syntax/nsis.vim @k-takata +runtime/syntax/odin.vim @habamax runtime/syntax/omnimark.vim @kennypete runtime/syntax/ondir.vim @jparise runtime/syntax/opencl.vim @Freed-Wu diff --git a/runtime/syntax/odin.vim b/runtime/syntax/odin.vim index 6bf06f69e..7f6b0ba65 100644 --- a/runtime/syntax/odin.vim +++ b/runtime/syntax/odin.vim @@ -1,24 +1,25 @@ vim9script -# Vim indent plugin file +# Vim syntax file # Language: Odin # Maintainer: Maxim Kim <haba...@gmail.com> # Website: https://github.com/habamax/vim-odin -# Last Change: 2024-01-15 +# Last Change: 2025-03-28 if exists("b:current_syntax") finish endif -syntax keyword odinKeyword using transmute cast distinct opaque where dynamic +syntax keyword odinKeyword using transmute cast auto_cast distinct opaque where dynamic syntax keyword odinKeyword struct enum union const bit_field bit_set syntax keyword odinKeyword package proc map import export foreign syntax keyword odinKeyword size_of offset_of type_info_of typeid_of type_of align_of syntax keyword odinKeyword return defer -syntax keyword odinKeyword or_return or_else syntax keyword odinKeyword inline no_inline +syntax keyword odinKeyword asm context -syntax keyword odinConditional if when else do for switch case continue break +syntax keyword odinConditional if when else do for switch case fallthrough +syntax keyword odinConditional continue or_continue break or_break or_return or_else syntax keyword odinType string cstring bool b8 b16 b32 b64 rune any rawptr syntax keyword odinType f16 f32 f64 f16le f16be f32le f32be f64le f64be syntax keyword odinType u8 u16 u32 u64 u128 u16le u32le u64le u128le u16be -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tysRp-007Omi-85%40256bit.org.