Skip to content

Commit

Permalink
Merge pull request #806 from vertax/gh-pages
Browse files Browse the repository at this point in the history
C#: Fixed detection of float numbers.
  • Loading branch information
Golmote committed Oct 13, 2015
2 parents a434c86 + 5728f91 commit 1dae72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prism-csharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Prism.languages.csharp = Prism.languages.extend('clike', {
/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,
/("|')(\\?.)*?\1/
],
'number': /\b-?(0x[\da-f]+|\d*\.?\d+)\b/i
'number': /\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i
});

Prism.languages.insertBefore('csharp', 'keyword', {
Expand Down

0 comments on commit 1dae72b

Please sign in to comment.