Skip to content

Commit

Permalink
fix integer directly followed by .and. etc
Browse files Browse the repository at this point in the history
  • Loading branch information
315234 committed Jul 8, 2016
1 parent 590c786 commit 2ef0c56
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions grammars/FortranModern.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,18 @@ contexts:


literal:
# floating point literals with an exponent (must come before -+ operators) and optional underscore kind
- match: \b[0-9]+(?!\.|e)\b
# integers, which may be directly followed by .and. etc
- match: |
(?xi)
(?:\b
[0-9]+
(?! \. (?!and|or|not|eq|lt|le|gt|ge|ne|eqv|neqv)
| e
)
\b
)
scope: constant.numeric.integer.fortran
# floating point literals with an exponent (must come before -+ operators) and optional underscore kind
- match: |
(?xi)
(?:
Expand Down

0 comments on commit 2ef0c56

Please sign in to comment.