-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
**/dist/ | ||
**/out/ | ||
**.vsix | ||
**/protected.txt | ||
**/test.dosc | ||
**/SavedFileCompletionItemProvider.json | ||
/.vscode-test | ||
src/test/files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"name": "siyuan as json", | ||
"scopeName": "source.sy", | ||
"patterns": [ | ||
{ | ||
"include": "#value" | ||
} | ||
], | ||
"repository": { | ||
"value": { | ||
"patterns": [ | ||
{ | ||
"include": "#object" | ||
}, | ||
{ | ||
"include": "#array" | ||
}, | ||
{ | ||
"include": "#string" | ||
}, | ||
{ | ||
"include": "#number" | ||
}, | ||
{ | ||
"include": "#null" | ||
}, | ||
{ | ||
"include": "#true" | ||
}, | ||
{ | ||
"include": "#false" | ||
} | ||
] | ||
}, | ||
"object": { | ||
"begin": "\\{", | ||
"end": "\\}", | ||
"patterns": [ | ||
{ | ||
"include": "#pair" | ||
} | ||
] | ||
}, | ||
"pair": { | ||
"match": "\\s*\"(\\\\.|[^\"])*\"\\s*:\\s*\"(\\\\.|[^\"])*\"\\s*", | ||
"captures": { | ||
"1": { | ||
"name": "string.quoted.double.json" | ||
}, | ||
"2": { | ||
"name": "string.quoted.double.json" | ||
} | ||
} | ||
}, | ||
"array": { | ||
"begin": "\\[", | ||
"end": "\\]", | ||
"patterns": [ | ||
{ | ||
"include": "#value" | ||
} | ||
] | ||
}, | ||
"string": { | ||
"begin": "\"", | ||
"end": "\"", | ||
"name": "string.quoted.double.json", | ||
"patterns": [ | ||
{ | ||
"match": "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|.)", | ||
"name": "constant.character.escape.json" | ||
} | ||
] | ||
}, | ||
"number": { | ||
"match": "-?(0|[1-9]\\d*)(\\.(\\d+)([eE][-+]?\\d+)?)?", | ||
"name": "constant.numeric.json" | ||
}, | ||
"null": { | ||
"match": "\\bnull\\b", | ||
"name": "constant.language.null.json" | ||
}, | ||
"true": { | ||
"match": "\\btrue\\b", | ||
"name": "constant.language.boolean.true.json" | ||
}, | ||
"false": { | ||
"match": "\\bfalse\\b", | ||
"name": "constant.language.boolean.false.json" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"等效于 dayjs().format(\"YYYYMMDDHHmmss\")": { | ||
"prefix": [ | ||
"formatDate_newDate", | ||
"dayjs().format" | ||
], | ||
"body": [ | ||
"formatDate(new Date($1), 'yyyyMMddHHmmss')" | ||
], | ||
"description": "等效于 dayjs().format(\"YYYYMMDDHHmmss\")\nformatDate 是 sofill/mid 中的一个代理函数,最终调用 date-fns 库的 format 函数" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters