Merge pull request #1119 from ajaxorg/cssNumberToken

improve number tokenizing in CSS
This commit is contained in:
Harutyun Amirjanyan 2012-11-26 08:35:28 -08:00
commit cc2a2c9e05

View file

@ -76,8 +76,8 @@ var CssHighlightRules = function() {
token : ["constant.numeric", "keyword"],
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
}, {
token : ["constant.numeric"],
regex : "([0-9]+)"
token : "constant.numeric",
regex : numRe
}, {
token : "constant.numeric", // hex6 color
regex : "#[a-f0-9]{6}"