mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(odin): add new keywords to syntax script
closes: #17012 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
a580761a45
commit
e9a369f9c3
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -562,6 +562,7 @@ runtime/syntax/ninja.vim @nico
|
|||||||
runtime/syntax/nix.vim @equill
|
runtime/syntax/nix.vim @equill
|
||||||
runtime/syntax/nroff.vim @jmarshall
|
runtime/syntax/nroff.vim @jmarshall
|
||||||
runtime/syntax/nsis.vim @k-takata
|
runtime/syntax/nsis.vim @k-takata
|
||||||
|
runtime/syntax/odin.vim @habamax
|
||||||
runtime/syntax/omnimark.vim @kennypete
|
runtime/syntax/omnimark.vim @kennypete
|
||||||
runtime/syntax/ondir.vim @jparise
|
runtime/syntax/ondir.vim @jparise
|
||||||
runtime/syntax/opencl.vim @Freed-Wu
|
runtime/syntax/opencl.vim @Freed-Wu
|
||||||
|
@ -1,24 +1,25 @@
|
|||||||
vim9script
|
vim9script
|
||||||
|
|
||||||
# Vim indent plugin file
|
# Vim syntax file
|
||||||
# Language: Odin
|
# Language: Odin
|
||||||
# Maintainer: Maxim Kim <habamax@gmail.com>
|
# Maintainer: Maxim Kim <habamax@gmail.com>
|
||||||
# Website: https://github.com/habamax/vim-odin
|
# Website: https://github.com/habamax/vim-odin
|
||||||
# Last Change: 2024-01-15
|
# Last Change: 2025-03-28
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
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 struct enum union const bit_field bit_set
|
||||||
syntax keyword odinKeyword package proc map import export foreign
|
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 size_of offset_of type_info_of typeid_of type_of align_of
|
||||||
syntax keyword odinKeyword return defer
|
syntax keyword odinKeyword return defer
|
||||||
syntax keyword odinKeyword or_return or_else
|
|
||||||
syntax keyword odinKeyword inline no_inline
|
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 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 f16 f32 f64 f16le f16be f32le f32be f64le f64be
|
||||||
syntax keyword odinType u8 u16 u32 u64 u128 u16le u32le u64le u128le u16be
|
syntax keyword odinType u8 u16 u32 u64 u128 u16le u32le u64le u128le u16be
|
||||||
|
Reference in New Issue
Block a user