diff --git a/src/protocol/parser/token_parsing.rs b/src/protocol/parser/token_parsing.rs index 08cc187fafa331fcfc13633e7d50e3a3700f67e2..f9cc693182f025fbfb9491ebd2fc4fc60a59ebca 100644 --- a/src/protocol/parser/token_parsing.rs +++ b/src/protocol/parser/token_parsing.rs @@ -46,6 +46,8 @@ pub(crate) const KW_STMT_CONTINUE: &'static [u8] = b"continue"; pub(crate) const KW_STMT_GOTO: &'static [u8] = b"goto"; pub(crate) const KW_STMT_RETURN: &'static [u8] = b"return"; pub(crate) const KW_STMT_SYNC: &'static [u8] = b"sync"; +pub(crate) const KW_STMT_FORK: &'static [u8] = b"fork"; +pub(crate) const KW_STMT_OR: &'static [u8] = b"or"; pub(crate) const KW_STMT_NEW: &'static [u8] = b"new"; // Keywords - types @@ -527,7 +529,7 @@ fn is_reserved_statement_keyword(text: &[u8]) -> bool { KW_IMPORT | KW_AS | KW_STMT_CHANNEL | KW_STMT_IF | KW_STMT_WHILE | KW_STMT_BREAK | KW_STMT_CONTINUE | KW_STMT_GOTO | KW_STMT_RETURN | - KW_STMT_SYNC | KW_STMT_NEW => true, + KW_STMT_SYNC | KW_STMT_FORK | KW_STMT_NEW => true, _ => false, } }