lib/rouge/lexers/fsharp.rb in rouge-2.0.7 vs lib/rouge/lexers/fsharp.rb in rouge-2.1.0
- old
+ new
@@ -48,10 +48,10 @@
rule /\s+/m, Text
rule /false|true|[(][)]|\[\]/, Name::Builtin::Pseudo
rule /#{upper_id}(?=\s*[.])/, Name::Namespace, :dotted
rule upper_id, Name::Class
rule /[(][*](?![)])/, Comment, :comment
- rule %r(//.*?\n), Comment::Single
+ rule %r(//.*?$), Comment::Single
rule id do |m|
match = m[0]
if self.class.keywords.include? match
token Keyword
elsif self.class.word_operators.include? match