mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Add cuda-cpp lang id, grammar and problem matchers (#119444)
* 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>
This commit is contained in:
@@ -50,6 +50,17 @@
|
||||
"cpp"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "cuda-cpp",
|
||||
"extensions": [
|
||||
".cu",
|
||||
".cuh"
|
||||
],
|
||||
"aliases": [
|
||||
"CUDA C++"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
@@ -71,8 +82,35 @@
|
||||
{
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user