Skip to content

Commit

Permalink
Merge pull request atom#61 from livelazily/master
Browse files Browse the repository at this point in the history
Highlight keyword operators, fixed atom#44
  • Loading branch information
simurai committed Feb 4, 2016
2 parents 66cae01 + f96bcb5 commit 8fa750c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@import 'languages/gfm';
@import 'languages/ini';
@import 'languages/java';
@import 'languages/javascript';
@import 'languages/json';
@import 'languages/ruby';
@import 'languages/python';
15 changes: 15 additions & 0 deletions styles/languages/javascript.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.source.js {
// 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;
}
}
}

0 comments on commit 8fa750c

Please sign in to comment.