Skip to content
Snippets Groups Projects
Commit 06a23eb6 authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

fixed some more issues in syntax highlighting

parent ccf06532
No related branches found
No related tags found
No related merge requests found
Pipeline #402834 passed
......@@ -15,7 +15,7 @@ export const soilHighlight = {
},
'number': /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
'punctuation': /[{}[\],]/,
'operator': /:/,
// 'operator': /:/,
'boolean': /\b(?:false|true)\b/,
'null': {
pattern: /\bnull\b/,
......@@ -27,8 +27,14 @@ export const soilHighlight = {
"modifier": {
pattern: /\b(constant|dynamic|fixed|update)\b/
},
"datatype-full": {
pattern: /:\s?(boolean|enum|float|int|string|time)\b/,
inside: {
"datatype": {
pattern: /\b(boolean|enum|float|int|string|time)\b/
}
}
},
"event": {
pattern: /\b(critical|debug|error|if|info|warning)\b/
......@@ -53,10 +59,10 @@ export const soilHighlight = {
}
}
},
// "semantics": {
// pattern: /<\w+:\w+>/,
// greedy: true,
// lookbehind: true
// }
"semantics": {
pattern: /<\w+:\w+>/,
greedy: true,
lookbehind: true
}
};
\ No newline at end of file
......@@ -119,7 +119,7 @@ body {
}
.dark-theme .token.event {
color: #c7c724
color: #e748a5
}
.dark-theme .token.warning {
......@@ -131,7 +131,7 @@ body {
}
.light-theme .token.event {
color: #0d931a
color: #e748a5
}
.token.selector,
......@@ -143,7 +143,7 @@ body {
color: #4caf50;
}
.token.operator,
/* .token.operator, */
.token.entity,
.token.url,
.language-css .token.string,
......@@ -153,8 +153,7 @@ body {
.token.atrule,
.token.attr-value,
.token.keyword,
.token.prefix {
.token.keyword {
color: #ff9800;
}
......@@ -172,7 +171,8 @@ body {
color: #4d854f;
}
.token.semantics {
.token.semantics,
.token.prefix {
color: #bb3030;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment