Skip to content

Commit

Permalink
fix: recognisition of uppercase hex numbers for stylus mode (#4962)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Oct 17, 2022
1 parent 5e4fa13 commit 87e0dc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mode/stylus_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ var StylusHighlightRules = function() {
regex: "(?:\\b)(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(?:h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)(?:\\b)"
},
{
token : "constant.numeric", // hex6 color
regex : "#[a-f0-9]{6}"
token: "constant.numeric", // hex6 color
regex: "#[a-fA-F0-9]{6}"
},
{
token : "constant.numeric", // hex3 color
regex : "#[a-f0-9]{3}"
token: "constant.numeric", // hex3 color
regex: "#[a-fA-F0-9]{3}"
},
{
token: ["punctuation.definition.entity.stylus", "entity.other.attribute-name.id.stylus"],
Expand Down

0 comments on commit 87e0dc7

Please sign in to comment.