mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
95420b39f2
* Adding a language ID for CUDA * Adding aliases for CUDA C++ * Add problem matcher for cuda-cpp based on nvcc output * Adding a grammar for cuda-cpp * Adding a language configuration file for cuda-cpp * Adding a colorizer test for cuda-cpp * Update the update-grammars.js to pick up cuda-cpp.tmLanguage.json * Add cgmanifest entry for cuda grammar Co-authored-by: Alex Ross <alros@microsoft.com>
129 lines
2.7 KiB
JSON
129 lines
2.7 KiB
JSON
{
|
|
"name": "cpp",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"vscode": "*"
|
|
},
|
|
"scripts": {
|
|
"update-grammar": "node ./build/update-grammars.js"
|
|
},
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "c",
|
|
"extensions": [
|
|
".c",
|
|
".i"
|
|
],
|
|
"aliases": [
|
|
"C",
|
|
"c"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
},
|
|
{
|
|
"id": "cpp",
|
|
"extensions": [
|
|
".cpp",
|
|
".cc",
|
|
".cxx",
|
|
".c++",
|
|
".hpp",
|
|
".hh",
|
|
".hxx",
|
|
".h++",
|
|
".h",
|
|
".ii",
|
|
".ino",
|
|
".inl",
|
|
".ipp",
|
|
".hpp.in",
|
|
".h.in"
|
|
],
|
|
"aliases": [
|
|
"C++",
|
|
"Cpp",
|
|
"cpp"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
},
|
|
{
|
|
"id": "cuda-cpp",
|
|
"extensions": [
|
|
".cu",
|
|
".cuh"
|
|
],
|
|
"aliases": [
|
|
"CUDA C++"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "c",
|
|
"scopeName": "source.c",
|
|
"path": "./syntaxes/c.tmLanguage.json"
|
|
},
|
|
{
|
|
"language": "cpp",
|
|
"scopeName": "source.cpp.embedded.macro",
|
|
"path": "./syntaxes/cpp.embedded.macro.tmLanguage.json"
|
|
},
|
|
{
|
|
"language": "cpp",
|
|
"scopeName": "source.cpp",
|
|
"path": "./syntaxes/cpp.tmLanguage.json"
|
|
},
|
|
{
|
|
"scopeName": "source.c.platform",
|
|
"path": "./syntaxes/platform.tmLanguage.json"
|
|
},
|
|
{
|
|
"language": "cuda-cpp",
|
|
"scopeName": "source.cuda-cpp",
|
|
"path": "./syntaxes/cuda-cpp.tmLanguage.json"
|
|
}
|
|
],
|
|
"problemPatterns": [
|
|
{
|
|
"name": "nvcc-location",
|
|
"regexp": "^(.*)\\((\\d+)\\):\\s+(warning|error):\\s+(.*)",
|
|
"kind": "location",
|
|
"file": 1,
|
|
"location": 2,
|
|
"severity": 3,
|
|
"message": 4
|
|
}
|
|
],
|
|
"problemMatchers": [
|
|
{
|
|
"name": "nvcc",
|
|
"owner": "cuda-cpp",
|
|
"fileLocation": [
|
|
"relative",
|
|
"${workspaceFolder}"
|
|
],
|
|
"pattern": "$nvcc-location"
|
|
}
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "c",
|
|
"path": "./snippets/c.code-snippets"
|
|
},
|
|
{
|
|
"language": "cpp",
|
|
"path": "./snippets/cpp.code-snippets"
|
|
}
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|