Skip to content

Commit

Permalink
Merge branch 'issue8-multi-line-strings' of https://github.com/source…
Browse files Browse the repository at this point in the history
…-academy/py-slang into issue8-multi-line-strings
  • Loading branch information
JJtan2002 committed Mar 17, 2024
2 parents 5629263 + 32f3cb1 commit d2328f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ export class Tokenizer {
const lexeme = this.source.slice(this.start, this.current);
this.tokens.push(new Token(type, lexeme, line, col, this.current - lexeme.length))
}
<<<<<<< HEAD

=======

>>>>>>> 32f3cb1331c16de903e732e936b77af3710418ef
private addStringToken(type: TokenType) {
const line = this.line
const col = this.col;
Expand All @@ -186,7 +190,11 @@ export class Tokenizer {
const lexeme = this.source.slice(this.start + 1, this.current - 1);
this.tokens.push(new Token(type, lexeme, line, col, this.current - lexeme.length))
}
<<<<<<< HEAD

=======

>>>>>>> 32f3cb1331c16de903e732e936b77af3710418ef
private addMultiLineStringToken(type: TokenType) {
const line = this.line
const col = this.col;
Expand Down

0 comments on commit d2328f5

Please sign in to comment.