Skip to content

Commit 3dbb8ab

Browse files
authored
Add gate to qasm tmLanguage file (#2459)
The keyword `gate` isn't being highlighted in .qasm files. This PR adds `gate` to the list of keywords in the `openqasm.tmLanguage.json` file to ensure that it is properly highlighted.
1 parent a883e08 commit 3dbb8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode/syntaxes/openqasm.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"name": "keyword.other.openqasm",
54-
"match": "\\b(OPENQASM|include|qubit|reset|mutable|readonly|#dim|stretch|delay|barrier|box|input|output|int|float|bit|bool|uint|angle|complex|const|defcal|def|array|duration|let|measure|pragma|defcalgrammar|cal|qreg|creg|extern|port|frame|waveform)\\b"
54+
"match": "\\b(OPENQASM|include|qubit|reset|mutable|readonly|#dim|stretch|delay|barrier|box|input|output|int|float|bit|bool|uint|angle|complex|const|defcal|def|gate|array|duration|let|measure|pragma|defcalgrammar|cal|qreg|creg|extern|port|frame|waveform)\\b"
5555
}
5656
]
5757
},

0 commit comments

Comments
 (0)