vscode不会自动更改关键字的颜色,即使它们被我自己的扩展程序成功捕获
我正在尝试开发一个VSCODE扩展,以调整自己的语言。
如图所示,VSCODE已经捕获了评论和关键字,但是只有评论的颜色自动更改,而关键字的颜色则没有。
这是语法
"scopeName": "source.rosita",
"fileTypes": ["rosita"],
"name": "rosita",
"patterns": [
{ "include": "#comments" },
{ "include": "#keywords" }
],
"repository": {
"comments": {
"comment": "% comment",
"patterns": [
{
"name" : "comment.rosita",
"match": "%.*"
}
]
},
"keywords": {
"patterns": [
{
"name" : "keywords.general.rosita",
"match": "\\b(?:GIDIR|GODIR|GTDIR)\\b"
}
]
}
}
。
I am trying to develop a VScode extension to adapt my own language.
VScode has already captured the comments and the keywords, as the picture shows, but only the color of comments is automatically changed, while that of keywords are not.
This is the syntaxes .json
"scopeName": "source.rosita",
"fileTypes": ["rosita"],
"name": "rosita",
"patterns": [
{ "include": "#comments" },
{ "include": "#keywords" }
],
"repository": {
"comments": {
"comment": "% comment",
"patterns": [
{
"name" : "comment.rosita",
"match": "%.*"
}
]
},
"keywords": {
"patterns": [
{
"name" : "keywords.general.rosita",
"match": "\\b(?:GIDIR|GODIR|GTDIR)\\b"
}
]
}
}
Could somebody explain what's going on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论