summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorMaxim Logunov <spitty.pnz@gmail.com>2016-04-19 17:57:07 +0300
committerMaxim Logunov <spitty.pnz@gmail.com>2016-04-19 17:57:07 +0300
commit3c835b53d7eeede449d38549461c56bee135fbfd (patch)
tree720b5faf1df7661570759bfa70b022335f3d90ec /external
parentef6cb21358bf39090ddbc047c2b76adee0ac939a (diff)
downloadpygments-3c835b53d7eeede449d38549461c56bee135fbfd.tar.gz
Speed up regex for searching numbers in jvm languages
The problem was in expressions like `r'[0-9](_*[0-9]+)*'`. They find numbers which can contains underscores. Proposed expressions are equivalent (e.g. `r'[0-9][0-9_]*'`). This change significantly improves performance of a whole expression.
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions