FalsePattern / ZigBrains

The zig language plugin for intellij
https://falsepattern.com/zigbrains
Other
121 stars 9 forks source link

Plugin doesn't recognize ranges in for loops #6

Closed AnErrupTion closed 1 year ago

AnErrupTion commented 1 year ago

Consider this simple for loop with a range of numbers:

for (0..10) |_| {}

ZigBrains will throw an error over at the double dots:

'!', '(', ')', <addition op>, <bit shift op>, <bitwise op>, <compare op>, <multiply op>, <suffix op>, and, or or '{' expected, got '..'

But, of course, this compiles fine. Tested with ZigBrains 0.7.0.

FalsePattern commented 1 year ago

Should be fixed in 0.8.0. Seems like zig-spec is a bit out of date.