Fix -> (#simd[N]T) like types in signature returns

This commit is contained in:
gingerBill
2026-06-24 11:09:53 +01:00
parent ade003e128
commit 9be5790dbe

View File

@@ -1792,6 +1792,13 @@ is_token_field_prefix :: proc(p: ^Parser) -> ast.Field_Flag {
advance_token(p)
return .Using
case .Hash:
if tok := peek_token(p); tok.kind == .Ident {
switch tok.text {
case "simd", "type", "row_major", "column_major", "sparse", "soa":
return .Invalid
}
}
tok: tokenizer.Token
advance_token(p)
tok = p.curr_tok