Skip to content

Commit 6375a41

Browse files
committed
Object attributes in CoffeeScript
1 parent c4c3e35 commit 6375a41

File tree

14 files changed

+30
-13
lines changed

14 files changed

+30
-13
lines changed

src/languages/coffeescript.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ function(hljs) {
126126
{
127127
className: 'property',
128128
begin: '@' + JS_IDENT_RE
129+
},
130+
{
131+
className: 'attribute',
132+
begin: JS_IDENT_RE + ':', end: ':',
133+
returnBegin: true, excludeEnd: true
129134
}
130135
])
131136
};

src/styles/arta.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ pre .xml .attribute,
4141
pre .smalltalk .char,
4242
pre .xml .value,
4343
pre .ini .value,
44-
pre .clojure .attribute
44+
pre .clojure .attribute,
45+
pre .coffeescript .attribute
4546
{
4647
color: #ffcc33;
4748
}

src/styles/dark.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ pre .envvar,
5454
pre .apache .tag,
5555
pre .apache .cbracket,
5656
pre .tex .command,
57-
pre .prompt {
57+
pre .prompt,
58+
pre .coffeescript .attribute {
5859
color: #D88;
5960
}
6061

src/styles/default.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ pre .tex .command,
4343
pre .tex .special,
4444
pre .erlang_repl .function_or_atom,
4545
pre .asciidoc .header,
46-
pre .markdown .header {
46+
pre .markdown .header,
47+
pre .coffeescript .attribute {
4748
color: #800;
4849
}
4950

src/styles/far.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ pre .addition,
3232
pre .apache .tag,
3333
pre .apache .cbracket,
3434
pre .tex .command,
35-
pre .clojure .title {
35+
pre .clojure .title,
36+
pre .coffeescript .attribute {
3637
color: #FF0;
3738
}
3839

src/styles/googlecode.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ pre .filter .argument,
4343
pre .attr_selector,
4444
pre .apache .cbracket,
4545
pre .date,
46-
pre .regexp {
46+
pre .regexp,
47+
pre .coffeescript .attribute {
4748
color: #080;
4849
}
4950

src/styles/ir_black.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ pre .cdata,
3636
pre .filter .argument,
3737
pre .attr_selector,
3838
pre .apache .cbracket,
39-
pre .date {
39+
pre .date,
40+
pre .coffeescript .attribute {
4041
color: #A8FF60;
4142
}
4243

src/styles/magula.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ pre .addition,
3636
pre .flow,
3737
pre .stream,
3838
pre .bash .variable,
39-
pre .apache .cbracket {
39+
pre .apache .cbracket,
40+
pre .coffeescript .attribute {
4041
color: #050;
4142
}
4243

src/styles/obsidian.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pre code {
1010

1111
pre .keyword,
1212
pre .literal,
13-
pre .strong,
1413
pre .change,
1514
pre .winutils,
1615
pre .flow,

src/styles/school_book.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ pre .envvar,
6262
pre .apache .tag,
6363
pre .apache .cbracket,
6464
pre .nginx .built_in,
65-
pre .tex .command {
65+
pre .tex .command,
66+
pre .coffeescript .attribute {
6667
color: #2C009F;
6768
}
6869

0 commit comments

Comments
 (0)