diff --git a/src/protocol/parser/token_parsing.rs b/src/protocol/parser/token_parsing.rs index c1fe33866a320f12cb0a6aab04db481579eddae1..f9cc693182f025fbfb9491ebd2fc4fc60a59ebca 100644 --- a/src/protocol/parser/token_parsing.rs +++ b/src/protocol/parser/token_parsing.rs @@ -45,7 +45,9 @@ pub(crate) const KW_STMT_BREAK: &'static [u8] = b"break"; 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"synchronous"; +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, } }