lib/rouge/lexers/csharp.rb in rouge-0.2.15 vs lib/rouge/lexers/csharp.rb in rouge-0.3.0

- old
+ new

@@ -48,16 +48,16 @@ rule /[~!%^&*()+=|\[\]{}:;,.<>\/?-]/, 'Punctuation' rule /@"(\\.|.)*?"/, 'Literal.String' rule /"(\\.|.)*?["\n]/, 'Literal.String' rule /'(\\.|.)'/, 'Literal.String.Char' + rule /0x[0-9a-f]+[lu]?/i, 'Literal.Number' rule %r( [0-9] ([.][0-9]*)? # decimal (e[+-][0-9]+)? # exponent - [fld]? # type + [fldu]? # type )ix, 'Literal.Number' - rule /0x[0-9a-f]+l?/i, 'Literal.Number' rule /^#[ \t]*(#{cpp_keywords.join('|')})\b.*?\n/, 'Comment.Preproc' rule /\b(#{keywords.join('|')})\b/, 'Keyword' rule /\b(#{keywords_type.join('|')})\b/, 'Keyword.Type' rule /class|struct/, 'Keyword', :class