Commit 5acf10c
committed
fix: Prefer macro namespace when classifying paths in macro invocations
Problem: When `resolve_macro_call` fails to resolve a macro, the fallback `resolve_path_with_subst`
prefers type/value namespaces over the macro namespace. This causes
macro invocations to be incorrectly highlighted as `namespace` when a
module with the same name exists in scope.
Solution: Use `resolve_path_per_ns` to check the macro namespace first when in a
MacroCall context, falling back to normal path resolution if no
macro is found.1 parent 2a40241 commit 5acf10c
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
774 | 782 | | |
775 | 783 | | |
776 | 784 | | |
| |||
0 commit comments