Skip to content

Commit

Permalink
improved floating point literal mathing
Browse files Browse the repository at this point in the history
  • Loading branch information
315234 committed Feb 26, 2016
1 parent b49fd80 commit 085d327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FortranModern.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ contexts:
# variable assignment operator
- match: \s=\s
scope: keyword.operator.fortran
# floating point literals with an exponent (must come before -+ operators)
- match: (?xi:(?<!\w) [-+]? (\d+ | \d*\.\d+ | \d+\.\d*) ([ed][-+]?\d+) \b)
# floating point literals with an exponent (must come before -+ operators) and optional underscore kind
- match: (?xi:(?<!\w) [-+]? (\d+\.\d+ | \d+\. | \.\d+ | \d+ ) ([ed][-+]?\d+)? (_\w+)? )
scope: constant.numeric.floating-point.fortran
# arithmetic operators
- match: (?x:= | - | \+ | / | \* | // | ::)
Expand Down

0 comments on commit 085d327

Please sign in to comment.