aboutsummaryrefslogtreecommitdiffstats
path: root/tiddlers/highlight-json5.tid
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-07-26 22:42:45 +0800
committershu <nvcsadjkojf@outlook.com>2026-07-26 22:42:45 +0800
commit338cc101f127e4841689c1f81227ee033e57ad28 (patch)
tree490cfc2ca29dc28e116a979f5c19b0851c3ea32e /tiddlers/highlight-json5.tid
parent1888ff59743d83bd7776b0f16ef0bc20d68e3e10 (diff)
Add task board and organize local plugins
Diffstat (limited to 'tiddlers/highlight-json5.tid')
-rw-r--r--tiddlers/highlight-json5.tid59
1 files changed, 0 insertions, 59 deletions
diff --git a/tiddlers/highlight-json5.tid b/tiddlers/highlight-json5.tid
deleted file mode 100644
index 099df98..0000000
--- a/tiddlers/highlight-json5.tid
+++ /dev/null
@@ -1,59 +0,0 @@
-title: $:/plugins/local/highlight-languages/json5.js
-type: application/javascript
-module-type: highlight
-
-/*\
-title: $:/plugins/local/highlight-languages/json5.js
-type: application/javascript
-module-type: highlight
-
-JSON5 language definition for highlight.js.
-\*/
-"use strict";
-
-hljs.registerLanguage("json5",function(hljs) {
- return {
- name: "JSON5",
- aliases: ["json5"],
- keywords: {
- literal: "true false null"
- },
- contains: [
- hljs.C_LINE_COMMENT_MODE,
- hljs.C_BLOCK_COMMENT_MODE,
- {
- className: "attr",
- match: /[A-Za-z_$][0-9A-Za-z_$]*(?=\s*:)/
- },
- {
- className: "attr",
- match: /"(?:\\.|[^"\\\r\n])*"(?=\s*:)/
- },
- {
- className: "attr",
- match: /'(?:\\.|[^'\\\r\n])*'(?=\s*:)/
- },
- hljs.QUOTE_STRING_MODE,
- hljs.APOS_STRING_MODE,
- {
- className: "number",
- variants: [
- {
- begin: /[+-]?(?:Infinity|NaN)\b/
- },
- {
- begin: /[+-]?0[xX][0-9a-fA-F]+\b/
- },
- {
- begin: /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/
- }
- ],
- relevance: 0
- },
- {
- className: "punctuation",
- match: /[{}\[\],:]/
- }
- ]
- };
-}); \ No newline at end of file