summaryrefslogtreecommitdiff
path: root/src/mfm/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/mfm/parse')
-rw-r--r--src/mfm/parse/core/syntax-highlighter.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mfm/parse/core/syntax-highlighter.ts b/src/mfm/parse/core/syntax-highlighter.ts
index c5157ca1d3..83aac89f1b 100644
--- a/src/mfm/parse/core/syntax-highlighter.ts
+++ b/src/mfm/parse/core/syntax-highlighter.ts
@@ -1,4 +1,4 @@
-import { capitalize } from "../../../prelude/string";
+import { capitalize, toUpperCase } from "../../../prelude/string";
function escape(text: string) {
return text
@@ -92,7 +92,7 @@ const _keywords = [
const keywords = _keywords
.concat(_keywords.map(capitalize))
- .concat(_keywords.map(k => k.toUpperCase()))
+ .concat(_keywords.map(toUpperCase))
.sort((a, b) => b.length - a.length);
const symbols = [