mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-02-23 23:01:11 +00:00
Refactor js beautifier
This commit is contained in:
parent
4b07c2907b
commit
d210b6381e
File diff suppressed because it is too large
Load Diff
@ -105,8 +105,6 @@ var in_html_comment;
|
||||
|
||||
var Tokenizer = function(input_string, options) {
|
||||
BaseTokenizer.call(this, input_string, options);
|
||||
this.positionable_operators = positionable_operators;
|
||||
this.line_starters = line_starters;
|
||||
};
|
||||
Tokenizer.prototype = new BaseTokenizer();
|
||||
|
||||
@ -527,7 +525,7 @@ Tokenizer.prototype._read_string_recursive = function(delimiter, allow_unescaped
|
||||
return resulting_string;
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports.Tokenizer = Tokenizer;
|
||||
module.exports.TOKEN = TOKEN;
|
||||
module.exports.TOKEN = TOKEN;
|
||||
module.exports.positionable_operators = positionable_operators.slice();
|
||||
module.exports.line_starters = line_starters.slice();
|
File diff suppressed because it is too large
Load Diff
@ -114,10 +114,9 @@ class Tokenizer(BaseTokenizer):
|
||||
positionable_operators = positionable_operators
|
||||
line_starters = line_starters
|
||||
|
||||
def __init__(self, input_string, opts, indent_string):
|
||||
def __init__(self, input_string, opts):
|
||||
BaseTokenizer.__init__(self, input_string, opts)
|
||||
|
||||
self.indent_string = indent_string
|
||||
self.in_html_comment = False
|
||||
self.has_char_escapes = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user