lib/rouge/lexers/javascript.rb in rouge-0.3.7 vs lib/rouge/lexers/javascript.rb in rouge-0.3.8
- old
+ new
@@ -180,9 +180,10 @@
rule /(\{)(\s*)(\})/ do
group 'Punctuation'
group 'Text.Whitespace'
group 'Punctuation'
end
+ rule /true|false/, 'Keyword.Constant'
rule /{/, 'Punctuation', :object_key
rule /\[/, 'Punctuation', :array
rule /-?(?:0|[1-9]\d*)\.\d+(?:e[+-]\d+)?/i, 'Literal.Number.Float'
rule /-?(?:0|[1-9]\d*)(?:e[+-]\d+)?/i, 'Literal.Number.Integer'
mixin :has_string