From db3994f6d248f6f4d03f7e0788a68eb8d2c7ce32 Mon Sep 17 00:00:00 2001 From: zawwz Date: Fri, 5 Nov 2021 13:21:26 +0100 Subject: [PATCH] fix missing % arithmetic operator --- src/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.cpp b/src/parse.cpp index 6e3f998..58b4ad3 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -18,7 +18,7 @@ const std::set posix_cmdvar = { "export", "unset", "local", "read", const std::set bash_cmdvar = { "readonly", "declare", "typeset" }; const std::set arithmetic_precedence_operators = { "!", "~", "+", "-" }; -const std::set arithmetic_operators = { "+", "-", "*", "/", "+=", "-=", "*=", "/=", "=", "==", "!=", "&", "|", "^", "<<", ">>", "&&", "||" }; +const std::set arithmetic_operators = { "+", "-", "*", "/", "%", "+=", "-=", "*=", "/=", "=", "==", "!=", "&", "|", "^", "<<", ">>", "&&", "||" }; const std::set all_reserved_words = { "if", "then", "else", "fi", "case", "esac", "for", "while", "do", "done", "{", "}" }; const std::set out_reserved_words = { "then", "else", "fi", "esac", "do", "done", "}" };