mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 12:49:40 +00:00
Minor style check
This commit is contained in:
parent
93927c78b7
commit
a700321057
@ -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) {
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user