From 176e0add8795c600347adc0cb6d0f0a58cc8fe90 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 23 Aug 2022 11:06:53 -0700 Subject: [PATCH] Update Ast/src/Lexer.cpp Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com> --- Ast/src/Lexer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Ast/src/Lexer.cpp b/Ast/src/Lexer.cpp index 532b9905..b4db8bdf 100644 --- a/Ast/src/Lexer.cpp +++ b/Ast/src/Lexer.cpp @@ -545,6 +545,7 @@ Lexeme Lexer::readLongString(const Position& start, int sep, Lexeme::Type ok, Le void Lexer::readBackslashInString() { + LUAU_ASSERT(peekch() == '\\'); consume(); switch (peekch()) {