Minor style check

This commit is contained in:
Antonius Anggito Arissaputro 2022-11-25 14:50:28 +07:00
parent 93927c78b7
commit a700321057
2 changed files with 5 additions and 3 deletions

View File

@ -229,7 +229,7 @@ Tokenizer.prototype._read_singles = function(c) {
Tokenizer.prototype._read_pair = function(c, d) {
var token = null;
if (c === '#' && d === '{') {
token = this._create_token(TOKEN.START_BLOCK, c+d);
token = this._create_token(TOKEN.START_BLOCK, c + d);
}
if (token) {

View File

@ -220,7 +220,9 @@ class Tokenizer(BaseTokenizer):
token = token or self._read_non_javascript(c)
token = token or self._read_string(c)
token = token or self._read_pair(c, self._input.peek(1)) # Issue #2062 hack for record type '#{'
token = token or self._read_pair(
c, self._input.peek(1)
) # Issue #2062 hack for record type '#{'
token = token or self._read_word(previous_token)
token = token or self._read_singles(c)
token = token or self._read_comment(c)
@ -262,7 +264,7 @@ class Tokenizer(BaseTokenizer):
token = None
if c == "#" and d == "{":
token = self._create_token(TOKEN.START_BLOCK, c+d)
token = self._create_token(TOKEN.START_BLOCK, c + d)
if token is not None:
self._input.next()