Skip to content

Commit

Permalink
fix: incorrect check involving raw in consumeUntil of lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy-DNA committed Aug 14, 2023
1 parent 202fdf0 commit b3ee887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dbml-core/src/parse/dbml/src/lib/lexer/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default class Lexer {
let string = '';

while (!this.isAtEnd() && (allowNewline || !this.check('\n')) && !this.check(stopSequence)) {
if (this.peek() === '\\' && raw) {
if (this.peek() === '\\' && !raw) {
string += this.escapedString();
} else {
string += this.advance();
Expand Down

0 comments on commit b3ee887

Please sign in to comment.