Skip to content

Commit

Permalink
feat(psl): add "async", "await", "using" to the list of reserved words (
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno authored Nov 28, 2024
1 parent 0160cc2 commit 1886abc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psl/parser-database/src/names/reserved_model_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ pub(crate) fn validate_enum_name(ast_enum: &ast::Enum, diagnostics: &mut Diagnos
const RESERVED_NAMES: &[&str] = &[
"PrismaClient",
// JavaScript keywords
"async",
"await",
"break",
"case",
"catch",
Expand Down Expand Up @@ -83,6 +85,7 @@ const RESERVED_NAMES: &[&str] = &[
"true",
"try",
"typeof",
"using",
"var",
"void",
"while",
Expand Down

0 comments on commit 1886abc

Please sign in to comment.