我正在尝试使内部评论中的所有内容都TODO(...)
像javascript一样。它只是行不通。也没有任何输出。
包.json
{
"contributes": {
"grammars": [
{
"path": "./syntaxes/injection.json",
"scopeName": "todo-comment.injection",
"injectTo": [
"text.html.basic"
]
}
]
}
}
语法/注入.json
{
"scopeName": "todo-comment.injection",
"injectionSelector": "L:comment.block",
"patterns": [
{
"include": "#todo-keyword"
}
],
"repository": {
"todo-keyword": {
"match": "TODO\\((.+?)\\)",
"name": "keyword.todo",
"captures": {
"0": {
"patterns": [
{
"include": "source.js"
}
]
}
}
}
}
}