diff --git a/components/prism-csharp.js b/components/prism-csharp.js index 1425e83ab8..3b79d2e12e 100644 --- a/components/prism-csharp.js +++ b/components/prism-csharp.js @@ -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', {