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