Skip to content

Commit

Permalink
Improved parity with Sublime Text for Pug/Jade
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
Briles committed Jun 13, 2016
1 parent 712cd0d commit 307fd60
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions styles/language.less
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,25 @@
.meta.at-rule.media .support.function.misc,
.meta.prolog.haml,
.meta.tag.sgml.doctype.html,
.comment.other.doctype.jade,
.source.cs .keyword.operator,
.storage.type.function.jade,
.storage.type.function.pug,
.storage.type.import.haxe,
.storage.type.import.include.jade,
.storage.type.import.include.pug,
.variable.documentroot,
.meta.at-rule .keyword.control.at-rule,
.punctuation.definition.directive,
.variable.language.default.js {
color: @red;
}

// Reset Jade/Pug doctype italics
.comment.other.doctype.jade {
font-style: normal;
}

// CSS At-Rule Punctuation (@) & At-Rule Vendor Prefixes
.keyword.control.at-rule .support.type.property-vendor,
.punctuation.definition.keyword {
Expand Down Expand Up @@ -165,7 +173,8 @@
.variable.other.interpolation .variable,
.variable.parameter.output.function.matlab,
.variable.parameter.sass,
.variable.other.interpolation.less {
.variable.other.interpolation.less,
.variable.control.import.include.pug {
color: @blue;
}

Expand Down Expand Up @@ -387,7 +396,8 @@
.meta.function-call .variable.function,
.meta.function-call .entity.name.function,
.support.function,
.meta.at-rule.namespace .entity.name.function {
.meta.at-rule.namespace .entity.name.function,
.source.script.jade.entity.name.function.pug {
color: @aqua;
}

Expand Down Expand Up @@ -423,7 +433,8 @@
// HTML & CSS ID
.constant.id.tag,
.entity.name.tag.id,
.entity.other.attribute-name.id {
.entity.other.attribute-name.id,
.meta.tag.attribute.id {
color: @orange;
}

Expand All @@ -434,10 +445,16 @@

// HTML & CSS Class
.entity.name.tag.class,
.entity.other.attribute-name.class {
.entity.other.attribute-name.class,
.meta.tag.attribute.class {
color: @yellow;
}

// Jade/Pug Classname
.meta.tag.attribute.class.jade {
color: @purple;
}

// HTML & CSS Class Punctuation (.)
.entity.other.attribute-name.class .punctuation.definition.entity {
color: @neutral-yellow;
Expand Down Expand Up @@ -531,7 +548,8 @@
.punctuation.section.function.css,
.meta.function-call .meta.group .punctuation.definition.group,
.punctuation.separator.variable.ruby,
.meta.function-call .punctuation.definition.arguments {
.meta.function-call .punctuation.definition.arguments,
.constant.name.attribute.tag.pug {
color: @fg3;
}

Expand Down

0 comments on commit 307fd60

Please sign in to comment.