Skip to content

Commit

Permalink
Alias annotation to puncuation in java and groovy
Browse files Browse the repository at this point in the history
Removing the annotation selector from the css
  • Loading branch information
desertjim committed Mar 8, 2016
1 parent 175cfb8 commit da4e0be
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions components/prism-groovy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Prism.languages.insertBefore('groovy', 'punctuation', {

Prism.languages.insertBefore('groovy', 'function', {
'annotation': {
alias: 'punctuation',
pattern: /(^|[^.])@\w+/,
lookbehind: true
}
Expand Down
2 changes: 1 addition & 1 deletion components/prism-groovy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions components/prism-java.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Prism.languages.java = Prism.languages.extend('clike', {

Prism.languages.insertBefore('java','function', {
'annotation': {
alias: 'punctuation',
pattern: /(^|[^.])@\w+/,
lookbehind: true
}
Expand Down
2 changes: 1 addition & 1 deletion components/prism-java.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion themes/prism-coy.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ pre[class*="language-"]:after {
color: #1990b8;
}

.token.annotation,
.token.regex,
.token.important {
color: #e90;
Expand Down
1 change: 0 additions & 1 deletion themes/prism-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ pre[class*="language-"] {
color: hsl(350, 40%, 70%);
}

.token.annotation,
.token.regex,
.token.important {
color: #e90;
Expand Down
1 change: 0 additions & 1 deletion themes/prism-funky.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ code[class*="language-"] {
color: deeppink;
}

.token.annotation,
.token.regex,
.token.important {
color: orange;
Expand Down
1 change: 0 additions & 1 deletion themes/prism-okaidia.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ pre[class*="language-"] {
color: #66d9ef;
}

.token.annotation,
.token.regex,
.token.important {
color: #fd971f;
Expand Down
3 changes: 1 addition & 2 deletions themes/prism-solarizedlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ pre[class*="language-"] {
color: #b58900; /* yellow */
}

.token.annotation,
.token.regex,
.token.important,
.token.variable {
Expand All @@ -146,4 +145,4 @@ pre[class*="language-"] {

.token.entity {
cursor: help;
}
}
1 change: 0 additions & 1 deletion themes/prism-tomorrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ pre[class*="language-"] {
color: #cc99cd;
}

.token.annotation,
.token.string,
.token.char,
.token.attr-value,
Expand Down
1 change: 0 additions & 1 deletion themes/prism-twilight.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
color: hsl(218, 22%, 55%); /* #7587A6 */
}

.token.annotation,
.token.regex,
.token.important {
color: hsl(42, 75%, 65%); /* #E9C062 */
Expand Down
1 change: 0 additions & 1 deletion themes/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ pre[class*="language-"] {
color: #DD4A68;
}

.token.annotation,
.token.regex,
.token.important,
.token.variable {
Expand Down

0 comments on commit da4e0be

Please sign in to comment.