Skip to content

Commit de71fbf

Browse files
committed
hljs: change the names of classes
In alignment with other languages. Signed-off-by: Felipe Contreras <[email protected]>
1 parent 531f96c commit de71fbf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

hljs/felipec.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
color: hsl(0, 75%, 75%);
1818
}
1919

20-
.hljs-operator {
20+
.hljs-punctuation {
2121
color: hsl(30, 75%, 75%);
2222
}
2323

24-
.hljs-unit {
24+
.hljs-class {
2525
color: hsl(150, 75%, 75%);
2626
font-weight: bold;
2727
}
2828

29-
.hljs-matrix {
29+
.hljs-bullet {
3030
color: hsl(210, 75%, 75%);
3131
}
3232

33-
.hljs-function {
33+
.hljs-title {
3434
color: hsl(240, 75%, 75%);
3535
}
3636

hljs/mathjs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ function mathjs(hljs) {
88
}
99

1010
const OPERATORS = {
11-
scope: 'operator',
11+
scope: 'punctuation',
1212
begin: /[=+\-*/.^?!%'<>:~]+/,
1313
};
1414

1515
const OPERATOR_KEYWORDS = {
16-
scope: 'operator',
16+
scope: 'punctuation',
1717
begin: keywords(['to', 'in', 'and', 'not', 'or', 'xor', 'mod']),
1818
};
1919

@@ -31,19 +31,19 @@ function mathjs(hljs) {
3131
});
3232

3333
const UNITS = {
34-
scope: 'unit',
34+
scope: 'class',
3535
begin: keywords(PREFIXED_UNIT_LIST),
3636
};
3737

3838
const MATRIX = {
39-
scope: 'matrix',
39+
scope: 'bullet',
4040
begin: /[\[\],;]/,
4141
};
4242

4343
const FUNCTION_LIST = Object.getOwnPropertyNames(math).filter(e => typeof math[e] === 'function');
4444

4545
const FUNCTIONS = {
46-
scope: 'function',
46+
scope: 'title',
4747
begin: keywords(FUNCTION_LIST),
4848
};
4949

0 commit comments

Comments
 (0)