Skip to content

Commit 26919f4

Browse files
Merge branch 'main' into gh-179
2 parents e10392c + ba5013f commit 26919f4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ static Stmt* parse_statement(Parser* parser) {
943943
}
944944
char* name = parser->current_token.literal;
945945
advance(parser);
946-
// Support typed declaration with indexed-assignment target, e.g. `TNS: t[1:10] = ...`
946+
// Support typed declaration with indexed-assignment target, e.g. `TNS: t[1-10] = ...`
947947
if (parser->current_token.type == TOKEN_LBRACKET || parser->current_token.type == TOKEN_LANGLE) {
948948
// construct base identifier expr and parse trailing indexers
949949
Expr* base = expr_ident(name, type_tok.line, type_tok.column);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
TNS vec = [0d1, 0d2]
2-
ASSIGN(vec[0d1:0d2], [0d1.5, 0d2.5])
2+
ASSIGN(vec[0d1-0d2], [0d1.5, 0d2.5])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
TNS vec = [0d1, 0d2]
2-
ASSIGN(vec[0d1:0d2], 0d9)
2+
ASSIGN(vec[0d1-0d2], 0d9)

0 commit comments

Comments
 (0)