diff options
author | Josiah Schwab <jschwab@gmail.com> | 2016-08-18 18:44:44 -0700 |
---|---|---|
committer | Josiah Schwab <jschwab@gmail.com> | 2016-08-18 18:44:44 -0700 |
commit | 118e3a2b47344e6d417178cc07f79179ae6c43e0 (patch) | |
tree | 1a95ed63ff1712cf6938538e15a43e6bc58f55ad /pygments/lexers/javascript.py | |
parent | a059848738956ed6790dd6ad7a064b2670024dd1 (diff) | |
download | pygments-git-118e3a2b47344e6d417178cc07f79179ae6c43e0.tar.gz |
Add exponent-letter D to Fortran lexer
In the Fortran specification, the exponent-letter within a
signed-real-literal-constant is E or D. Therefore, both 3.14159e0 and
3.14159d0 should be classified as a Number.Float.
The current behavior is
>>> print(highlight("3.14159d0", FortranLexer(), HtmlFormatter()))
<div class="highlight"><pre><span></span><span class="mf">3.14159</span><span class="n">d0</span>
</pre></div>
where the only the significand is classified as a Number.Float while
the exponent-letter and exponent are classified as Name.Variable.
After this patch the behavior is
>>> print(highlight("3.14159d0", FortranLexer(), HtmlFormatter()))
<div class="highlight"><pre><span></span><span class="mf">3.14159d0</span>
</pre></div>
which is the expected behavior.
Diffstat (limited to 'pygments/lexers/javascript.py')
0 files changed, 0 insertions, 0 deletions