mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Format type_annotation.rs and keyword.rs
This commit is contained in:
parent
c22c2259c0
commit
365c65caf1
2 changed files with 4 additions and 4 deletions
|
@ -14,6 +14,4 @@ pub const CRASH: &str = "crash";
|
|||
pub const IMPLEMENTS: &str = "implements";
|
||||
pub const WHERE: &str = "where";
|
||||
|
||||
pub const KEYWORDS: [&str; 10] = [
|
||||
IF, THEN, ELSE, WHEN, AS, IS, DBG, EXPECT, EXPECT_FX, CRASH,
|
||||
];
|
||||
pub const KEYWORDS: [&str; 10] = [IF, THEN, ELSE, WHEN, AS, IS, DBG, EXPECT, EXPECT_FX, CRASH];
|
||||
|
|
|
@ -729,7 +729,9 @@ fn parse_type_variable<'a>(
|
|||
min_indent,
|
||||
) {
|
||||
Ok((_, name, state)) => {
|
||||
if name == crate::keyword::WHERE || (name == crate::keyword::IMPLEMENTS && stop_at_surface_has) {
|
||||
if name == crate::keyword::WHERE
|
||||
|| (name == crate::keyword::IMPLEMENTS && stop_at_surface_has)
|
||||
{
|
||||
Err((NoProgress, EType::TEnd(state.pos())))
|
||||
} else {
|
||||
let answer = TypeAnnotation::BoundVariable(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue