diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 08:00:06 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 08:00:06 -0700 |
commit | a35fafaffd8eb676fda928cb45929c1559a216a3 (patch) | |
tree | 7009d0925e5c966901d949ad1360ac0ddcc4b018 /pygments/lexers/jvm.py | |
parent | 410f5b1f6998c2cf2ca67070fc20680abc6e0e5d (diff) | |
download | pygments-a35fafaffd8eb676fda928cb45929c1559a216a3.tar.gz |
Use unistring.combine for slight speedup.
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r-- | pygments/lexers/jvm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index 136a0fd7..de176ef3 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -999,9 +999,9 @@ class KotlinLexer(RegexLexer): flags = re.MULTILINE | re.DOTALL | re.UNICODE - kt_name = ('@?[_' + uni.Lu + uni.Ll + uni.Lt + uni.Lm + uni.Nl + ']' + - '[' + uni.Lu + uni.Ll + uni.Lt + uni.Lm + uni.Nl + uni.Nd + - uni.Pc + uni.Cf + uni.Mn + uni.Mc + ']*') + kt_name = ('@?[_' + uni.combine('Lu', 'Ll', 'Lt', 'Lm', 'Nl') + ']' + + '[' + uni.combine('Lu', 'Ll', 'Lt', 'Lm', 'Nl', 'Nd', 'Pc', 'Cf', + 'Mn', 'Mc') + ']*') kt_id = '(' + kt_name + '|`' + kt_name + '`)' tokens = { |