Skip to content

Conversation

@wenxuanjun
Copy link
Contributor

@wenxuanjun wenxuanjun commented Dec 26, 2025

Allowed import inside blocks (e.g., $if amd64 { import ... }). Fix the analyzer logic so it can find and resolve these nested imports for Jump to Definition.

Fixed missing highlighting for Interface names and the implements keyword.

Fixed parsing volatile modifier in global var define (e.g., __global (volatile var_name)).

Fixed asm statement parsing to correctly support optional volatile/goto modifiers and arch names.

Fixed parsing errors for functions like fn C.printf(fmt &char, ...) where ... stands alone. Fixed highlighting for multi-part import paths (e.g., import foo.bar, foo is now highlighted) and aliases (import ... as foo).

The tree_sitter_v directory contained a lot of legacy files for npm publishing which are not needed for v-analyzer so I deleted them. Updated tree-sitter-cli and pinned the submodule to the matching tag instead of master branch.

@spytheman
Copy link
Member

Thank you @wenxuanjun 🙇🏻 .

@spytheman spytheman merged commit 5f6c9c4 into vlang:main Dec 26, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants