highlight function names

This commit is contained in:
Fabian Jakobs 2011-09-06 09:53:59 +02:00
commit f5a5e70507
17 changed files with 127 additions and 1 deletions

View file

@ -105,6 +105,9 @@ var JavaScriptHighlightRules = function() {
}, {
token : "constant.numeric", // float
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
}, {
token : ["keyword", "text", "entity.name.function"],
regex : "(function)(\\s+)(" + identifierRe + ")"
}, {
token : "constant.language.boolean",
regex : "(?:true|false)\\b"

View file

@ -204,6 +204,14 @@ define(function(require, exports, module) {
color:#606060;\
}\
\
.ace-clouds .ace_entity.ace_name {\
\
}\
\
.ace-clouds .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-clouds .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -205,6 +205,14 @@ background-color:#E92E2E;\
color:#606060;\
}\
\
.ace-clouds-midnight .ace_entity.ace_name {\
\
}\
\
.ace-clouds-midnight .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-clouds-midnight .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -206,6 +206,14 @@ color:#0088FF;\
\
}\
\
.ace-cobalt .ace_entity.ace_name {\
\
}\
\
.ace-cobalt .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-cobalt .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -210,6 +210,14 @@ color:#5A525F;\
\
}\
\
.ace-dawn .ace_entity.ace_name {\
\
}\
\
.ace-dawn .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-dawn .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -206,6 +206,14 @@ color:#BC9458;\
\
}\
\
.ace-idle-fingers .ace_entity.ace_name {\
color:#FFC66D;\
}\
\
.ace-idle-fingers .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-idle-fingers .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -206,6 +206,14 @@ color:#706D5B;\
\
}\
\
.ace-kr-theme .ace_entity.ace_name {\
\
}\
\
.ace-kr-theme .ace_entity.ace_name.ace_function {\
\
}\
\
.ace-kr-theme .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -206,6 +206,14 @@ background-color:#151C19;\
color:#909993;\
}\
\
.ace-mono-industrial .ace_entity.ace_name {\
color:#5778B6;\
}\
\
.ace-mono-industrial .ace_entity.ace_name.ace_function {\
color:#A8B3AB;\
}\
\
.ace-mono-industrial .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -206,6 +206,14 @@ background-color:#AE81FF;\
color:#A6E22E;\
}\
\
.ace-monokai .ace_entity.ace_name {\
\
}\
\
.ace-monokai .ace_entity.ace_name.ace_function {\
color:#A6E22E;\
}\
\
.ace-monokai .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -205,6 +205,14 @@ color:#657B83;\
color:#93A1A1;\
}\
\
.ace-solarized-dark .ace_entity.ace_name {\
\
}\
\
.ace-solarized-dark .ace_entity.ace_name.ace_function {\
color:#268BD2;\
}\
\
.ace-solarized-dark .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -204,6 +204,14 @@ define(function(require, exports, module) {
color:#93A1A1;\
}\
\
.ace-solarized-light .ace_entity.ace_name {\
\
}\
\
.ace-solarized-light .ace_entity.ace_name.ace_function {\
color:#268BD2;\
}\
\
.ace-solarized-light .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -156,7 +156,11 @@ define(function(require, exports, module) {
color: rgb(104, 104, 91);\
}\
\
.ace-tm .ace_markup.ace_underline {\
.ace-tm .ace_entity.ace_name.ace_function {\
color: #0000A2;\
}\
\
.ace-tm .ace_markup.ace_markupine {\
text-decoration:underline;\
}\
\

View file

@ -211,6 +211,14 @@ color:#5F5A60;\
\
}\
\
.ace-twilight .ace_entity.ace_name {\
\
}\
\
.ace-twilight .ace_entity.ace_name.ace_function {\
color:#AC885B;\
}\
\
.ace-twilight .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -207,6 +207,14 @@ define(function(require, exports, module) {
color:#99CC99;\
}\
\
.ace-vibrant-ink .ace_entity.ace_name {\
\
}\
\
.ace-vibrant-ink .ace_entity.ace_name.ace_function {\
color:#FFCC00;\
}\
\
.ace-vibrant-ink .ace_markup.ace_underline {\
text-decoration:underline;\
}\

View file

@ -163,6 +163,14 @@
%entity.other.attribute-name%
}
.%cssClass% .ace_entity.ace_name {
%entity.name%
}
.%cssClass% .ace_entity.ace_name.ace_function {
%entity.name.function%
}
.%cssClass% .ace_markup.ace_underline {
text-decoration:underline;
}

View file

@ -88,6 +88,8 @@ var supportedScopes = {
"meta.tag": "meta.tag",
"meta.tag.form": "meta.tag.form",
"entity.other.attribute-name": "entity.other.attribute-name",
"entity.name.function": "entity.name.function",
"entity.name": "entity.name",
"markup.heading": "markup.heading",
"markup.heading.1": "markup.heading.1",

View file

@ -343,6 +343,19 @@
<string>#CDA869</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function name</string>
<key>scope</key>
<string>entity.name.function, support.function.any-method</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#AC885B</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>§ css:pseudo-class</string>