]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(odin): support underscore-separated numeric literals
authorMaxim Kim <habamax@gmail.com>
Sat, 6 Dec 2025 09:36:30 +0000 (10:36 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 6 Dec 2025 09:36:30 +0000 (10:36 +0100)
commitc7c16e4130c665fa6abd0c46ac305be61e467c2b
treec28f8c6c8e56d9cfa7f21519fb1feb3b509cfabd
parent911ecdcd0e80aa717b871ad94cc19f722014e44b
runtime(odin): support underscore-separated numeric literals

Add support for underscore-separated numeric literals in Odin syntax
highlighting. This allows proper highlighting of numbers like 1_000_000,
0xFF_AA_BB, and 0b1010_1111 as specified in the Odin language.

>  Numerical literals are written similar to most other programming
>  languages. A useful feature in Odin is that underscores are allowed
>  for better readability: 1_000_000_000 (one billion).
>  https://odin-lang.org/docs/overview/#numbers

closes: #18852

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/odin.vim