mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
make ace's coffee mode 1000x better
before and after: https://img.skitch.com/20110905-najte87m4cq32unmd6eyigikcf.png submitted upstream: https://github.com/ajaxorg/ace/pull/411
This commit is contained in:
10
vendor/ace/mode/coffee_highlight_rules.js
vendored
10
vendor/ace/mode/coffee_highlight_rules.js
vendored
@@ -48,12 +48,18 @@ define(function(require, exports, module) {
|
||||
merge : true,
|
||||
regex : ".+"
|
||||
};
|
||||
|
||||
|
||||
this.$rules = {
|
||||
start : [
|
||||
{
|
||||
token : "identifier",
|
||||
regex : "(?:@|(?:\\.|::)\\s*)" + identifier
|
||||
regex : "(?:(?:\\.|::)\\s*)" + identifier
|
||||
}, {
|
||||
token : "variable",
|
||||
regex : "@" + identifier
|
||||
}, {
|
||||
token : "label",
|
||||
regex : identifier + ":"
|
||||
}, {
|
||||
token : "keyword",
|
||||
regex : "(?:t(?:h(?:is|row|en)|ry|ypeof)|s(?:uper|witch)|return|b(?:reak|y)|c(?:ontinue|atch|lass)|i(?:n(?:stanceof)?|s(?:nt)?|f)|e(?:lse|xtends)|f(?:or (?:own)?|inally|unction)|wh(?:ile|en)|n(?:ew|ot?)|d(?:e(?:lete|bugger)|o)|loop|o(?:ff?|[rn])|un(?:less|til)|and|yes)"
|
||||
|
||||
3
vendor/ace/theme/twilight.js
vendored
3
vendor/ace/theme/twilight.js
vendored
@@ -183,6 +183,9 @@ color:#5F5A60;\
|
||||
.ace-twilight .ace_variable {\
|
||||
color:#7587A6;\
|
||||
}\
|
||||
.ace-twilight .ace_label {\
|
||||
color:#AC885B;\
|
||||
}\
|
||||
\
|
||||
.ace-twilight .ace_variable.ace_language {\
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user