The package ... and import ... in Odin have incorrect highlighting because they use @namespace instead of @keyword.control.import, like Rust, Go, and others do. Additionally, some of the keywords could be categorized better, e.g., defer as @function.macro, and struct and other storage types as @keyword.storage.type.
Reproduction Steps
For a simple hello-world.odin and gruvbox theme:
package main
import "core:fmt"
import rl "vendor:raylib"
main :: proc() {
fmt.println("Hello, world!")
}
Summary
The
package ...
andimport ...
in Odin have incorrect highlighting because they use@namespace
instead of@keyword.control.import
, like Rust, Go, and others do. Additionally, some of the keywords could be categorized better, e.g., defer as@function.macro
, and struct and other storage types as@keyword.storage.type
.Reproduction Steps
For a simple hello-world.odin and gruvbox theme:
Expected behavior:
What I actually got:
Helix log
No logs.
Platform
Linux Fedora 39
Terminal Emulator
wezterm 20240915_153243_2d0c5cdd
Installation Method
DNF package manager
Helix Version
helix 24.7 (079f5442)