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 | c80f19dba196d93a5e3005cf1536ecf523a33eee (patch) | |
tree | 14648a18fc906e8a37c63da977dae3df8863c581 /pygments/lexers/rust.py | |
parent | eeda49eb8b744ed9c47f5873667233a52717155b (diff) | |
download | pygments-git-c80f19dba196d93a5e3005cf1536ecf523a33eee.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 'pygments/lexers/rust.py')
0 files changed, 0 insertions, 0 deletions