diff options
author | Maxim Logunov <spitty.pnz@gmail.com> | 2016-04-19 17:57:07 +0300 |
---|---|---|
committer | Maxim Logunov <spitty.pnz@gmail.com> | 2016-04-19 17:57:07 +0300 |
commit | 3c835b53d7eeede449d38549461c56bee135fbfd (patch) | |
tree | 720b5faf1df7661570759bfa70b022335f3d90ec /external | |
parent | ef6cb21358bf39090ddbc047c2b76adee0ac939a (diff) | |
download | pygments-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