vlang / intellij-v

MIT License
33 stars 5 forks source link

@ sign before attribute/annotation is not recognized #3

Closed Krotki closed 5 months ago

Krotki commented 7 months ago

Describe the bug

Currently @ sign before attribute/annotation is not recognized properly and marked as unexpected token or another problem. In PsiViewer I could find for instance PsiErrorElement: expected <statement>, got '@' or PsiErrorElement:'@' unexpected

Expected Behavior

All function or struct attributes like @[direct_array_access], @[inline], @[packed], @[minify] or @[aligned] should be properly recognized.

Current Behavior

@ sign before attribute/annotation is not recognized

Reproduction Steps

@[inline]
fn inlinedFn() {
}

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

V 0.4.5 cf7dcfe.24af002

IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)

Any/All