summaryrefslogtreecommitdiff
path: root/pygments/lexers/rust.py
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
commitc80f19dba196d93a5e3005cf1536ecf523a33eee (patch)
tree14648a18fc906e8a37c63da977dae3df8863c581 /pygments/lexers/rust.py
parenteeda49eb8b744ed9c47f5873667233a52717155b (diff)
downloadpygments-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