Skip to content

Commit 999fb7d

Browse files
committed
[mlir][vscode] Don't inject inside strings
Avoids matching R"mlir( while already inside a string.
1 parent f59cb41 commit 999fb7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/utils/vscode/cpp-grammar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scopeName": "source.cpp.mlir",
3-
"injectionSelector": "L:source.cpp",
3+
"injectionSelector": "L:source.cpp -string.quoted.double.cpp -string.quoted.double.raw",
44
"patterns": [
55
{
66
"include": "#mlir-raw-string"

mlir/utils/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-mlir",
33
"displayName": "MLIR",
44
"description": "MLIR Language Extension",
5-
"version": "0.0.3",
5+
"version": "0.0.4",
66
"publisher": "llvm-vs-code-extensions",
77
"homepage": "https://mlir.llvm.org/",
88
"icon": "icon.png",

0 commit comments

Comments
 (0)