Skip to content

Commit

Permalink
CRLF to LF
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyfah committed Jan 16, 2025
1 parent b96819c commit 31c07e4
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,62 @@ SOURCE_FILE
NAME_REF
IDENT "i32"
R_CURLY "}"
WHITESPACE "\r\n"
ERROR
LET_KW "let"
WHITESPACE "\n"
FN
FN_KW "fn"
WHITESPACE " "
IDENT_PAT
NAME
IDENT "foo"
WHITESPACE " "
EQ "="
NAME
IDENT "f"
PARAM_LIST
L_PAREN "("
R_PAREN ")"
WHITESPACE " "
RECORD_EXPR
PATH
PATH_SEGMENT
NAME_REF
IDENT "X"
WHITESPACE " "
RECORD_EXPR_FIELD_LIST
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
RECORD_EXPR_FIELD
NAME_REF
IDENT "a"
COLON ":"
WHITESPACE "\n "
LET_STMT
LET_KW "let"
WHITESPACE " "
IDENT_PAT
NAME
IDENT "foo"
WHITESPACE " "
LITERAL
INT_NUMBER "1"
WHITESPACE "\r\n"
EQ "="
WHITESPACE " "
RECORD_EXPR
PATH
PATH_SEGMENT
NAME_REF
IDENT "X"
WHITESPACE " "
RECORD_EXPR_FIELD_LIST
L_CURLY "{"
WHITESPACE "\n "
RECORD_EXPR_FIELD
NAME_REF
IDENT "a"
COLON ":"
WHITESPACE " "
LITERAL
INT_NUMBER "1"
WHITESPACE "\n "
R_CURLY "}"
WHITESPACE " "
LET_ELSE
ELSE_KW "else"
WHITESPACE " "
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\n "
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
ELSE_KW "else"
WHITESPACE " "
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
error 19: expected an item
error 45: right curly brace `}` before `else` in a `let...else` statement not allowed
error 63: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
struct X {a: i32}
let foo = X {
a: 1
} else {
return;
};
fn f() {
let foo = X {
a: 1
} else {
return;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LITERAL
INT_NUMBER "1"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -29,14 +29,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 25: right curly brace `}` before `else` in a `let...else` statement not allowed
error 23: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LET_STMT
LET_KW "let"
WHITESPACE " "
Expand Down Expand Up @@ -47,7 +47,7 @@ SOURCE_FILE
WHITESPACE " "
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n\r\n "
WHITESPACE "\n\n "
LET_STMT
LET_KW "let"
WHITESPACE " "
Expand Down Expand Up @@ -84,7 +84,7 @@ SOURCE_FILE
WHITESPACE " "
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE "\r\n"
error 92: right curly brace `}` before `else` in a `let...else` statement not allowed
WHITESPACE "\n"
error 89: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LITERAL
INT_NUMBER "1"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -27,14 +27,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 24: right curly brace `}` before `else` in a `let...else` statement not allowed
error 22: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
PATH_EXPR
PATH
PATH_SEGMENT
NAME_REF
IDENT "x"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -42,14 +42,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 30: right curly brace `}` before `else` in a `let...else` statement not allowed
error 28: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LITERAL
INT_NUMBER "1"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -25,14 +25,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 22: right curly brace `}` before `else` in a `let...else` statement not allowed
error 20: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LET_STMT
LET_KW "let"
WHITESPACE " "
Expand All @@ -51,11 +51,11 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
TUPLE_EXPR
L_PAREN "("
R_PAREN ")"
WHITESPACE "\r\n "
WHITESPACE "\n "
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -64,7 +64,7 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
Expand All @@ -82,9 +82,9 @@ SOURCE_FILE
R_PAREN ")"
R_PAREN ")"
SEMICOLON ";"
WHITESPACE "\r\n "
WHITESPACE "\n "
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
error 70: right curly brace `}` before `else` in a `let...else` statement not allowed
error 67: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
TUPLE_EXPR
L_PAREN "("
R_PAREN ")"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -27,14 +27,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 29: right curly brace `}` before `else` in a `let...else` statement not allowed
error 27: right curly brace `}` before `else` in a `let...else` statement not allowed
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
LITERAL
INT_NUMBER "1"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
WHITESPACE " "
LET_ELSE
Expand All @@ -25,14 +25,14 @@ SOURCE_FILE
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
WHITESPACE "\r\n "
WHITESPACE "\n "
EXPR_STMT
RETURN_EXPR
RETURN_KW "return"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
R_CURLY "}"
SEMICOLON ";"
WHITESPACE "\r\n"
WHITESPACE "\n"
error 0: expected an item
error 22: right curly brace `}` before `else` in a `let...else` statement not allowed
error 20: right curly brace `}` before `else` in a `let...else` statement not allowed
Loading

0 comments on commit 31c07e4

Please sign in to comment.