Skip to content

Commit

Permalink
Merge pull request #86 from ztane/master
Browse files Browse the repository at this point in the history
fix performance problems in the identifier detection
  • Loading branch information
rspivak authored Jul 28, 2016
2 parents 861ff93 + bb5e1b0 commit 97d5645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slimit/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def t_STRING(self, token):
r'(?:' + COMBINING_MARK + r'|' + r'[0-9a-zA-Z_$]' + r'|' + DIGIT +
r'|' + CONNECTOR_PUNCTUATION + r')*'
)
identifier = identifier_start + identifier_part
identifier = (identifier_start + identifier_part).replace(']|[', '')

getprop = r'get' + r'(?=\s' + identifier + r')'
@ply.lex.TOKEN(getprop)
Expand Down

0 comments on commit 97d5645

Please sign in to comment.