lib/rouge/lexers/fortran.rb in rouge-2.0.5 vs lib/rouge/lexers/fortran.rb in rouge-2.0.6
- old
+ new
@@ -14,10 +14,10 @@
'*.F90', '*.F95'
mimetypes 'text/x-fortran'
name = /[A-Z][_A-Z0-9]*/i
kind_param = /(\d+|#{name})/
- exponent = /[ED][+-]\d+/
+ exponent = /[ED][+-]?\d+/i
def self.keywords
# Fortran allows to omit whitespace between certain keywords...
@keywords ||= Set.new %w(
allocatable allocate assignment backspace block blockdata call case