Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/utils.rs')
-rw-r--r--crates/syntax/src/utils.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/syntax/src/utils.rs b/crates/syntax/src/utils.rs
index 77d49b442e..d1f60f0b71 100644
--- a/crates/syntax/src/utils.rs
+++ b/crates/syntax/src/utils.rs
@@ -2,6 +2,7 @@
use crate::SyntaxKind;
+#[inline]
pub fn is_raw_identifier(name: &str, edition: parser::Edition) -> bool {
let is_keyword = SyntaxKind::from_keyword(name, edition).is_some();
is_keyword && !matches!(name, "self" | "crate" | "super" | "Self")