Skip to content

Commit 2d1b06b

Browse files
Fix comments to reflex current behaviour (#1558)
Lexer: Fix comments to reflex current behaviour
1 parent c93d7da commit 2d1b06b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/language/lexer.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ function printCharCode(code) {
187187
/**
188188
* Gets the next token from the source starting at the given position.
189189
*
190-
* This skips over whitespace and comments until it finds the next lexable
191-
* token, then lexes punctuators immediately or calls the appropriate helper
192-
* function for more complicated tokens.
190+
* This skips over whitespace until it finds the next lexable token, then lexes
191+
* punctuators immediately or calls the appropriate helper function for more
192+
* complicated tokens.
193193
*/
194194
function readToken(lexer: Lexer<*>, prev: Token): Token {
195195
const source = lexer.source;
@@ -362,8 +362,7 @@ function unexpectedCharacterMessage(code) {
362362
363363
/**
364364
* Reads from body starting at startPosition until it finds a non-whitespace
365-
* or commented character, then returns the position of that character for
366-
* lexing.
365+
* character, then returns the position of that character for lexing.
367366
*/
368367
function positionAfterWhitespace(
369368
body: string,

0 commit comments

Comments
 (0)