Skip to content

Commit

Permalink
remove dup
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyin committed Jan 31, 2025
1 parent 402f90a commit c3cd418
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lizard_languages/javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ class JavaScriptReader(TypeScriptReader):
ext = ['js']
language_names = ['javascript', 'js']

@staticmethod
@js_style_regex_expression
def generate_tokens(source_code, addition='', token_class=None):
addition = addition +\
r"|(?:\$\w+)" + \
r"|`.*?`"
js_tokenizer = JSTokenizer()
for token in CodeReader.generate_tokens(
source_code, addition, token_class):
for tok in js_tokenizer(token):
yield tok

def __init__(self, context):
super(JavaScriptReader, self).__init__(context)
self.parallel_states = [JavaScriptStyleLanguageStates(context)]

0 comments on commit c3cd418

Please sign in to comment.