Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(themes) remove builtin-name CSS class #3119

Merged
merged 2 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ New Languages:

Theme Improvements:

- chore(themes) remove `builtin-name` CSS class (#3119) [Josh Goebel][]
- chore(theme) Update GitHub theme css to match GitHub's current styling (#1616) [Jan Pilzer][]

[Josh Goebel]: https://github.com/joshgoebel
Expand Down
3 changes: 0 additions & 3 deletions docs/css-classes-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ your language is not considered a "Markup" language.
| name | name of an XML tag, the first word in an |
| | s-expression |
+--------------------------+---------------------------------------------------+
| builtin-name | s-expression name from the language standard |
| | library |
+--------------------------+---------------------------------------------------+
| attr | name of an attribute with no language defined |
| | semantics (keys in JSON, setting names in .ini), |
| | also sub-attribute within another highlighted |
Expand Down
2 changes: 1 addition & 1 deletion src/languages/clojure.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function(hljs) {
const globals = 'def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord';
const keywords = {
$pattern: SYMBOL_RE,
'builtin-name':
built_in:
// Clojure keywords
globals + ' ' +
'cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem ' +
Expand Down
2 changes: 1 addition & 1 deletion src/languages/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as regex from '../lib/regex.js';
export default function(hljs) {
const BUILT_INS = {
$pattern: /[\w.\/]+/,
'builtin-name': [
built_in: [
'action',
'bindattr',
'collection',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/hy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function(hljs) {
const SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*';
const keywords = {
$pattern: SYMBOL_RE,
'builtin-name':
built_in:
// keywords
'!= % %= & &= * ** **= *= *map ' +
'+ += , --build-class-- --import-- -= . / // //= ' +
Expand Down
2 changes: 1 addition & 1 deletion src/languages/routeros.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default function(hljs) {
returnBegin: true,
contains: [
{
className: 'builtin-name', // 'function',
className: 'built_in', // 'function',
begin: /\w+/
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/languages/scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function(hljs) {
const SCHEME_COMPLEX_NUMBER_RE = SCHEME_SIMPLE_NUMBER_RE + '[+\\-]' + SCHEME_SIMPLE_NUMBER_RE + 'i';
const KEYWORDS = {
$pattern: SCHEME_IDENT_RE,
'builtin-name':
built_in:
'case-lambda call/cc class define-class exit-handler field import ' +
'inherit init-field interface let*-values let-values let/ec mixin ' +
'opt-lambda override protect provide public rename require ' +
Expand Down
2 changes: 0 additions & 2 deletions src/styles/a11y-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
Expand Down Expand Up @@ -77,7 +76,6 @@
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-builtin-name,
.hljs-bullet,
.hljs-comment,
.hljs-link,
Expand Down
2 changes: 0 additions & 2 deletions src/styles/a11y-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
Expand Down Expand Up @@ -77,7 +76,6 @@
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-builtin-name,
.hljs-bullet,
.hljs-comment,
.hljs-link,
Expand Down
3 changes: 1 addition & 2 deletions src/styles/agate.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
.hljs-section,
.hljs-attribute,
.hljs-quote,
.hljs-built_in,
.hljs-builtin-name {
.hljs-built_in {
color: #ffa;
}

Expand Down
23 changes: 11 additions & 12 deletions src/styles/an-old-hope.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*

An Old Hope – Star Wars Syntax (c) Gustavo Costa <gusbemacbe@gmail.com>
Original theme - Ocean Dark Theme – by https://github.com/gavsiu
Expand All @@ -8,7 +8,7 @@ Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/Je

/* Death Star Comment */
.hljs-comment,
.hljs-quote
.hljs-quote
{
color: #B6B18B;
}
Expand All @@ -21,26 +21,25 @@ Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/Je
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion
.hljs-deletion
{
color: #EB3C54;
}

/* Threepio */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link
.hljs-link
{
color: #E7CE56;
}

/* Luke Skywalker */
.hljs-attribute
.hljs-attribute
{
color: #EE7C2B;
}
Expand All @@ -49,27 +48,27 @@ Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/Je
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition
.hljs-addition
{
color: #4FB4D7;
}

/* Yoda */
.hljs-title,
.hljs-section
.hljs-section
{
color: #78BB65;
}

/* Mace Windu */
.hljs-keyword,
.hljs-selector-tag
.hljs-selector-tag
{
color: #B45EA4;
}

/* Millenium Falcon */
.hljs
.hljs
{
display: block;
overflow-x: auto;
Expand All @@ -78,12 +77,12 @@ Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/Je
padding: 0.5em;
}

.hljs-emphasis
.hljs-emphasis
{
font-style: italic;
}

.hljs-strong
.hljs-strong
{
font-weight: bold;
}
1 change: 0 additions & 1 deletion src/styles/arta.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Author: pumbur <pumbur@pumbur.net>
}

.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-template-variable,
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-cave-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-cave-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-dune-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-dune-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-estuary-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-estuary-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-forest-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-forest-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-heath-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-heath-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-lakeside-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-lakeside-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-plateau-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-plateau-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-savanna-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-savanna-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-seaside-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-seaside-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-sulphurpool-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/atelier-sulphurpool-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
Expand Down
1 change: 0 additions & 1 deletion src/styles/codepen-embed.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
.hljs-meta,
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-params,
.hljs-symbol,
Expand Down
1 change: 0 additions & 1 deletion src/styles/darcula.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Darcula color scheme from the JetBrains family of IDEs
.hljs-subst,
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-symbol,
.hljs-selector-id,
.hljs-selector-attr,
Expand Down
3 changes: 1 addition & 2 deletions src/styles/docco.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine
color: #990073;
}

.hljs-built_in,
.hljs-builtin-name {
.hljs-built_in {
color: #0086b3;
}

Expand Down
1 change: 0 additions & 1 deletion src/styles/far.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ FAR Style (c) MajestiC <majestic2k@gmail.com>
.hljs-symbol,
.hljs-bullet,
.hljs-built_in,
.hljs-builtin-name,
.hljs-template-tag,
.hljs-template-variable,
.hljs-addition {
Expand Down
Loading