summaryrefslogtreecommitdiffstats
path: root/parsing/lexer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/lexer.sh')
-rw-r--r--parsing/lexer.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/parsing/lexer.sh b/parsing/lexer.sh
index 292d2fa..886e7f8 100644
--- a/parsing/lexer.sh
+++ b/parsing/lexer.sh
@@ -800,7 +800,7 @@ accept()
# T_WORD data unit must match reserved word
# exactly.
if ! [ "x${tok#T_WORD${US}}" = \
- "x$(tokname "${t}")" ]; then
+ "x$(toktext "${t}")" ]; then
return 1
fi
# If the token matches the reserved word,
@@ -842,7 +842,7 @@ accept()
T_CASE T_ESAC T_WHILE T_UNTIL T_FOR \
T_LBRACE T_RBRACE T_BANG T_IN; do
if [ "x${tok#T_WORD${US}}" = \
- "x$(tokname "${rw}")" ]; then
+ "x$(toktext "${rw}")" ]; then
tok="${rw}"
return 1
fi
@@ -860,7 +860,7 @@ accept()
T_CASE T_ESAC T_WHILE T_UNTIL T_FOR \
T_LBRACE T_RBRACE T_BANG T_IN; do
if [ "x${tok#T_WORD${US}}" = \
- "x$(tokname "${rw}")" ]; then
+ "x$(toktext "${rw}")" ]; then
tok="${rw}"
return 1
fi