aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-23 15:49:34 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-23 15:49:34 -0700
commit9ce36ba0ccd5d7de076e688423862d315ef4233f (patch)
tree24be8536eba04042e04995aa8d89951b8cc4fbe1 /src/parser.cpp
parente21369a1539063773734432993bc2c23680f0913 (diff)
downloadzig-9ce36ba0ccd5d7de076e688423862d315ef4233f.tar.gz
zig-9ce36ba0ccd5d7de076e688423862d315ef4233f.zip
inline assembly uses -> instead of return
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 65f9c7e6da..c47119d7d8 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1761,7 +1761,7 @@ static void ast_parse_asm_input_item(ParseContext *pc, int *token_index, AstNode
}
/*
-AsmOutputItem : token(LBracket) token(Symbol) token(RBracket) token(String) token(LParen) (token(Symbol) | token(Return) Type) token(RParen)
+AsmOutputItem : token(LBracket) token(Symbol) token(RBracket) token(String) token(LParen) (token(Symbol) | token(Arrow) Type) token(RParen)
*/
static void ast_parse_asm_output_item(ParseContext *pc, int *token_index, AstNode *node) {
ast_eat_token(pc, token_index, TokenIdLBracket);
@@ -1778,7 +1778,7 @@ static void ast_parse_asm_output_item(ParseContext *pc, int *token_index, AstNod
*token_index += 1;
if (token->id == TokenIdSymbol) {
ast_buf_from_token(pc, token, &asm_output->variable_name);
- } else if (token->id == TokenIdKeywordReturn) {
+ } else if (token->id == TokenIdArrow) {
asm_output->return_type = ast_parse_type(pc, token_index);
} else {
ast_invalid_token_error(pc, token);