diff --git a/crates/parser/src/syntax_kind/generated.rs b/crates/parser/src/syntax_kind/generated.rs index 52027b6..3c9f114 100644 --- a/crates/parser/src/syntax_kind/generated.rs +++ b/crates/parser/src/syntax_kind/generated.rs @@ -9,7 +9,7 @@ pub enum SyntaxKind { Tombstone, #[doc(hidden)] Eof, - #[doc(hiddent)] + #[doc(hidden)] Unknown, Bang, Hash, diff --git a/crates/syntax/snapshots/parser/ok/do_block.snap b/crates/syntax/snapshots/parser/ok/do_block.snap index 800a54d..7064db5 100644 --- a/crates/syntax/snapshots/parser/ok/do_block.snap +++ b/crates/syntax/snapshots/parser/ok/do_block.snap @@ -54,7 +54,7 @@ SourceFile@0..102 LParen@67..68 "(" MultivalExpr@68..82 Literal@68..82 - Str@68..82 "\'hello person\'" + Str@68..82 "'hello person'" RParen@82..83 ")" Whitespace@83..88 "\n " EndKw@88..91 "end" diff --git a/crates/syntax/snapshots/parser/ok/if_else_stmt.snap b/crates/syntax/snapshots/parser/ok/if_else_stmt.snap index 83a8b01..fc4f2e7 100644 --- a/crates/syntax/snapshots/parser/ok/if_else_stmt.snap +++ b/crates/syntax/snapshots/parser/ok/if_else_stmt.snap @@ -53,7 +53,7 @@ SourceFile@0..83 LParen@62..63 "(" MultivalExpr@63..77 Literal@63..77 - Str@63..77 "\'yes was true\'" + Str@63..77 "'yes was true'" RParen@77..78 ")" Whitespace@78..79 "\n" EndKw@79..82 "end" diff --git a/crates/syntax/snapshots/parser/ok/if_elseif_stmt.snap b/crates/syntax/snapshots/parser/ok/if_elseif_stmt.snap index f9d6fe3..9950a1e 100644 --- a/crates/syntax/snapshots/parser/ok/if_elseif_stmt.snap +++ b/crates/syntax/snapshots/parser/ok/if_elseif_stmt.snap @@ -69,7 +69,7 @@ SourceFile@0..166 LParen@80..81 "(" MultivalExpr@81..95 Literal@81..95 - Str@81..95 "\'yes was true\'" + Str@81..95 "'yes was true'" RParen@95..96 ")" Whitespace@96..97 "\n" ElseIfBranch@97..161 @@ -102,7 +102,7 @@ SourceFile@0..166 LParen@127..128 "(" MultivalExpr@128..139 Literal@128..139 - Str@128..139 "\'yes was 2\'" + Str@128..139 "'yes was 2'" RParen@139..140 ")" Whitespace@140..141 "\n" ElseBranch@141..161 @@ -119,7 +119,7 @@ SourceFile@0..166 LParen@153..154 "(" MultivalExpr@154..160 Literal@154..160 - Str@154..160 "\'else\'" + Str@154..160 "'else'" RParen@160..161 ")" Whitespace@161..162 "\n" EndKw@162..165 "end" diff --git a/crates/syntax/snapshots/parser/ok/index_expr.snap b/crates/syntax/snapshots/parser/ok/index_expr.snap index 4fce539..0112c5d 100644 --- a/crates/syntax/snapshots/parser/ok/index_expr.snap +++ b/crates/syntax/snapshots/parser/ok/index_expr.snap @@ -111,7 +111,7 @@ SourceFile@0..191 LParen@134..135 "(" MultivalExpr@135..142 Literal@135..142 - Str@135..142 "\'hello\'" + Str@135..142 "'hello'" RParen@142..143 ")" Whitespace@143..144 " " EndKw@144..147 "end" @@ -142,7 +142,7 @@ SourceFile@0..191 Index@179..188 LBracket@179..180 "[" Literal@180..187 - Str@180..187 "\'index\'" + Str@180..187 "'index'" RBracket@187..188 "]" CallArgs@188..190 ArgList@188..190 diff --git a/crates/syntax/snapshots/parser/ok/method_call.snap b/crates/syntax/snapshots/parser/ok/method_call.snap index 0b9413e..760576c 100644 --- a/crates/syntax/snapshots/parser/ok/method_call.snap +++ b/crates/syntax/snapshots/parser/ok/method_call.snap @@ -75,11 +75,11 @@ SourceFile@0..101 LParen@84..85 "(" MultivalExpr@85..99 Literal@85..91 - Str@85..91 "\'asdf\'" + Str@85..91 "'asdf'" Comma@91..92 "," Whitespace@92..93 " " Literal@93..99 - Str@93..99 "\'asdf\'" + Str@93..99 "'asdf'" RParen@99..100 ")" Whitespace@100..101 "\n" diff --git a/crates/syntax/snapshots/parser/ok/numeric_for_stmt.snap b/crates/syntax/snapshots/parser/ok/numeric_for_stmt.snap index 6e0fca2..2a740d4 100644 --- a/crates/syntax/snapshots/parser/ok/numeric_for_stmt.snap +++ b/crates/syntax/snapshots/parser/ok/numeric_for_stmt.snap @@ -37,7 +37,7 @@ SourceFile@0..82 LParen@27..28 "(" MultivalExpr@28..41 Literal@28..41 - Str@28..41 "\'hello world\'" + Str@28..41 "'hello world'" RParen@41..42 ")" Whitespace@42..43 "\n" EndKw@43..46 "end" diff --git a/crates/syntax/src/lua_lexer.rs b/crates/syntax/src/lua_lexer.rs index 8bc7cf0..525e516 100644 --- a/crates/syntax/src/lua_lexer.rs +++ b/crates/syntax/src/lua_lexer.rs @@ -14,7 +14,7 @@ use parser::Token; macro_rules! done { ($expr:expr) => { - return LexResult::new($expr, None); + return LexResult::new($expr, None) }; }