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", "}" };