Merge pull request #1119 from ajaxorg/cssNumberToken
improve number tokenizing in CSS
This commit is contained in:
commit
cc2a2c9e05
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue