diff --git a/src/protocol/parser/token_parsing.rs b/src/protocol/parser/token_parsing.rs index 28663793ff335f24a9db786c9514ece91f92536b..08abe9b338ae2931062d32064ec6016e5d6fcf70 100644 --- a/src/protocol/parser/token_parsing.rs +++ b/src/protocol/parser/token_parsing.rs @@ -17,8 +17,7 @@ pub(crate) const KW_STRUCT: &'static [u8] = b"struct"; pub(crate) const KW_ENUM: &'static [u8] = b"enum"; pub(crate) const KW_UNION: &'static [u8] = b"union"; pub(crate) const KW_FUNCTION: &'static [u8] = b"func"; -pub(crate) const KW_PRIMITIVE: &'static [u8] = b"primitive"; -pub(crate) const KW_COMPOSITE: &'static [u8] = b"composite"; +pub(crate) const KW_COMPONENT: &'static [u8] = b"comp"; pub(crate) const KW_IMPORT: &'static [u8] = b"import"; // Keywords - literals @@ -560,7 +559,7 @@ pub(crate) fn consume_ident_interned( fn is_reserved_definition_keyword(text: &[u8]) -> bool { match text { - KW_STRUCT | KW_ENUM | KW_UNION | KW_FUNCTION | KW_PRIMITIVE | KW_COMPOSITE => true, + KW_STRUCT | KW_ENUM | KW_UNION | KW_FUNCTION | KW_COMPONENT => true, _ => false, } }