aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Lockwood2021-06-30 22:11:10 -0400
committerAlexis Lockwood2021-06-30 22:11:10 -0400
commit727b380b06a538bd36f1df621f779202b93c2969 (patch)
tree89f0f859d6b87739bf3603b7944eb1965372e405
parentbb3582b18a9c0128efc1a731571414ca050e5bf3 (diff)
Could use LS_TOK_EOS here
-rw-r--r--src/ls_kw_impl_GOSUB_RETURN.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls_kw_impl_GOSUB_RETURN.c b/src/ls_kw_impl_GOSUB_RETURN.c
index 0e00add..dadff09 100644
--- a/src/ls_kw_impl_GOSUB_RETURN.c
+++ b/src/ls_kw_impl_GOSUB_RETURN.c
@@ -91,7 +91,7 @@ void ls_kw_fun_GOSUB(ls_t * self)
tok = ls_lex(self);
}
- if (tok != LS_TOK_STATEMENT_SEP && tok != LS_TOK_NONE)
+ if (!LS_TOK_EOS(tok))
ls_throw_err(self, LS_SYNTAX_ERROR);
ls_goto_ident(self, ident);