Skip to content

Commit

Permalink
Move qrc, qss, qdoc highlighting to qt-core
Browse files Browse the repository at this point in the history
Since qt-official will be separated in the future, the syntax
highlighting for those types should be moved to a common place.
Also,the support for those file types are so little that we cannot make
them separate extensions.

Change-Id: I44c7f6abbfb629a2174bfb5fbb85961222872fc4
Reviewed-by: Marcus Tillmanns <[email protected]>
  • Loading branch information
OrkunTokdemir committed Jul 24, 2024
1 parent fb80319 commit 8389feb
Show file tree
Hide file tree
Showing 14 changed files with 79 additions and 63 deletions.
79 changes: 79 additions & 0 deletions qt-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"Qt",
"C++",
"CMake",
"Qml",
"Qrc",
"Qss",
"Qdoc"
],
"qna": "marketplace",
"pricing": "Free",
"preview": true,
Expand Down Expand Up @@ -88,6 +100,73 @@
"category": "Qt"
}
],
"languages": [
{
"id": "qrc",
"configuration": "./res/lang/qrc/language-configuration.json",
"extensions": [
".qrc",
".qrc.cmakein"
],
"aliases": [
"Qrc"
],
"icon": {
"light": "res/icons/qrc-light.svg",
"dark": "res/icons/qrc-dark.svg"
}
},
{
"id": "qss",
"configuration": "./res/lang/qss/language-configuration.json",
"extensions": [
".qss"
],
"aliases": [
"QSS",
"Qss"
],
"icon": {
"light": "res/icons/qss-light.svg",
"dark": "res/icons/qss-dark.svg"
}
},
{
"id": "qdoc",
"configuration": "./res/lang/qdoc/language-configuration.json",
"extensions": [
".qdoc",
".qdocconf",
".qdocinc"
],
"aliases": [
"Qdoc",
"QDoc",
"qdoc"
],
"icon": {
"light": "res/icons/qdoc-light.svg",
"dark": "res/icons/qdoc-dark.svg"
}
}
],
"grammars": [
{
"language": "qdoc",
"scopeName": "source.qdoc",
"path": "./res/lang/qdoc/qdoc.tmLanguage.json"
},
{
"language": "qrc",
"scopeName": "source.qrc",
"path": "./res/lang/qrc/qrc.tmLanguage.json"
},
{
"language": "qss",
"scopeName": "source.qss",
"path": "./res/lang/qss/qss.tmLanguage.json"
}
],
"configuration": {
"type": "object",
"title": "Qt Core Configuration",
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 0 additions & 63 deletions qt-official/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,36 +194,6 @@
}
],
"languages": [
{
"id": "qrc",
"configuration": "./res/lang/qrc/language-configuration.json",
"extensions": [
".qrc",
".qrc.cmakein"
],
"aliases": [
"Qrc"
],
"icon": {
"light": "res/icons/qrc-light.svg",
"dark": "res/icons/qrc-dark.svg"
}
},
{
"id": "qss",
"configuration": "./res/lang/qss/language-configuration.json",
"extensions": [
".qss"
],
"aliases": [
"QSS",
"Qss"
],
"icon": {
"light": "res/icons/qss-light.svg",
"dark": "res/icons/qss-dark.svg"
}
},
{
"id": "qml",
"configuration": "./res/lang/qml/language-configuration.json",
Expand Down Expand Up @@ -251,37 +221,9 @@
"QMLDir",
"qmldir"
]
},
{
"id": "qdoc",
"configuration": "./res/lang/qdoc/language-configuration.json",
"extensions": [
".qdoc",
".qdocconf",
".qdocinc"
],
"aliases": [
"Qdoc",
"QDoc",
"qdoc"
],
"icon": {
"light": "res/icons/qdoc-light.svg",
"dark": "res/icons/qdoc-dark.svg"
}
}
],
"grammars": [
{
"language": "qdoc",
"scopeName": "source.qdoc",
"path": "./res/lang/qdoc/qdoc.tmLanguage.json"
},
{
"language": "qrc",
"scopeName": "source.qrc",
"path": "./res/lang/qrc/qrc.tmLanguage.json"
},
{
"scopeName": "qt-official.injection",
"path": "./res/lang/cpp/qt_cpp.injection.json",
Expand All @@ -290,11 +232,6 @@
"source.cpp"
]
},
{
"language": "qss",
"scopeName": "source.qss",
"path": "./res/lang/qss/qss.tmLanguage.json"
},
{
"language": "qml",
"scopeName": "source.qml",
Expand Down

0 comments on commit 8389feb

Please sign in to comment.