Skip to content

Commit

Permalink
Highlight operators in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
simurai committed Feb 4, 2016
1 parent 8fa750c commit c9fe554
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions styles/languages/javascript.less
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
.source.js {
.keyword.operator {
color: @hue-1;

// keywords are definded in https://github.com/atom/language-javascript/blob/master/grammars/javascript.cson
// search "instanceof" for location
.keyword.operator {
&.delete,
&.in,
&.of,
&.instanceof,
&.new,
&.typeof,
&.void {
color: @syntax-color-keyword;
}
&.delete,
&.in,
&.of,
&.instanceof,
&.new,
&.typeof,
&.void {
color: @hue-3;
}
}
}

0 comments on commit c9fe554

Please sign in to comment.