From c82aac1365e5a8709098f49ffe4c158f3ec86680 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 1 Jun 2019 23:40:59 -0400 Subject: [PATCH] Refer to @ as atsign not ampersand. --- src/core/parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/parse.c b/src/core/parse.c index 54af26c2..64127350 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -443,7 +443,7 @@ static int longstring(JanetParser *p, JanetParseState *state, uint8_t c) { static int root(JanetParser *p, JanetParseState *state, uint8_t c); -static int ampersand(JanetParser *p, JanetParseState *state, uint8_t c) { +static int atsign(JanetParser *p, JanetParseState *state, uint8_t c) { (void) state; p->statecount--; switch (c) { @@ -466,7 +466,7 @@ static int ampersand(JanetParser *p, JanetParseState *state, uint8_t c) { break; } pushstate(p, tokenchar, 0); - push_buf(p, '@'); /* Push the leading ampersand that was dropped */ + push_buf(p, '@'); /* Push the leading at-sign that was dropped */ return 0; } @@ -494,7 +494,7 @@ static int root(JanetParser *p, JanetParseState *state, uint8_t c) { pushstate(p, comment, 0); return 1; case '@': - pushstate(p, ampersand, 0); + pushstate(p, atsign, 0); return 1; case '`': pushstate(p, longstring, PFLAG_LONGSTRING);