8000 [BUG][LSP]: Syntax highlighting and jump-to-definition don't work in raising functions · Issue #4343 · modular/modular · GitHub
[go: up one dir, main page]

Skip to content 8000
[BUG][LSP]: Syntax highlighting and jump-to-definition don't work in raising functions #4343
@soraros

Description

@soraros

Bug description

As title. The semantic token type of f is function if main is not raising.

Image

Steps to reproduce

fn main() raises:
  f()  # doesn't jump to the definition below

fn f():
  ...

System information

Package     Version               Build    Size       Kind   Source
max         25.3.0.dev2025041105  release  9.7 KiB    conda  max
max-core    25.3.0.dev2025041105  release  258.5 MiB  conda  max-core
max-python  25.3.0.dev2025041105  release  35.4 MiB   conda  max-python

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodular-repomojoIssues that are related to mojo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0