Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect syntax highlighting of imports in Odin #11711

Open
antek-bizon opened this issue Sep 16, 2024 · 1 comment
Open

Incorrect syntax highlighting of imports in Odin #11711

antek-bizon opened this issue Sep 16, 2024 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@antek-bizon
Copy link

Summary

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!")
}

Expected behavior:

obraz

What I actually got:

obraz

Helix log

No logs.

Platform

Linux Fedora 39

Terminal Emulator

wezterm 20240915_153243_2d0c5cdd

Installation Method

DNF package manager

Helix Version

helix 24.7 (079f544)

@antek-bizon antek-bizon added the C-bug Category: This is a bug label Sep 16, 2024
antek-bizon added a commit to antek-bizon/helix that referenced this issue Sep 16, 2024
@antek-bizon
Copy link
Author

antek-bizon commented Sep 16, 2024

Here's my fixed version: link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant