move stuff around

main
Ziyang Hu 2 years ago
parent e3d9a18124
commit d82bbbd29b

@ -50,7 +50,7 @@ impl TryFrom<&[u8]> for Keyword {
impl Keyword {
pub(crate) fn is_reserved(&self) -> bool {
self.0.is_empty() || self.0.starts_with(['_', ':'])
self.0.is_empty() || self.0.starts_with(['_', ':', '<', '.', '*', '?', '!'])
}
pub(crate) fn to_string_no_prefix(&self) -> String {
format!("{}", self.0)

Loading…
Cancel
Save