diff options
author | Colin Kennedy <colinvfx@gmail.com> | 2019-12-05 00:00:06 -0800 |
---|---|---|
committer | Colin Kennedy <colinvfx@gmail.com> | 2019-12-05 00:00:06 -0800 |
commit | 178977a2f6dac74a17c43d6f71491b171a3b1775 (patch) | |
tree | eeac00743c0a50e3a53a3d678414ffcbf150b789 /pygments/lexers/usd.py | |
parent | 3ab3a081e0261f575c017ff8a59c1dc32d1bbc96 (diff) | |
download | pygments-git-178977a2f6dac74a17c43d6f71491b171a3b1775.tar.gz |
Added scientific notation support for USD numbers
Diffstat (limited to 'pygments/lexers/usd.py')
-rw-r--r-- | pygments/lexers/usd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/usd.py b/pygments/lexers/usd.py index b2d836c5..30ee4a58 100644 --- a/pygments/lexers/usd.py +++ b/pygments/lexers/usd.py @@ -113,7 +113,7 @@ class UsdLexer(RegexLexer): (",", Punctuation), (";", Punctuation), # ";"s are allowed to combine separate metadata lines ("=", Operator), - ("[-]?([0-9]*[.])?[0-9]+", Number), + ("[-]?([0-9]*[.])?[0-9]+(?:e[+-]\d+)?", Number), (r"'''(?:.|\n)*?'''", String), (r'"""(?:.|\n)*?"""', String), (r"'.*?'", String), |