We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e6d20 commit 97f229eCopy full SHA for 97f229e
syntaxes/tests/comment.bas
syntaxes/tests/main.bas
@@ -0,0 +1,11 @@
1
+' SYNTAX TEST "source.vba" "main syntax test"
2
+
3
+ Public Const FOO As Int = 1
4
+' ^^^^^^ storage.visibility
5
6
+ ' some comment
7
+' ^^^^^^^^^^^^^^ comment.line
8
9
+ Private Sub doStuff()
10
+' ^^^^^^^ storage.visibility
11
+End Sub
syntaxes/vba.tmLanguage.json
@@ -6,13 +6,18 @@
".frm"
],
"patterns": [
- { "include": "#comments" }
+ { "include": "#comments" },
+ { "include": "#storage" }
12
"repository": {
13
"comments": {
14
"name": "comment.line",
15
"begin": "'",
16
"end": "$"
17
+ },
18
+ "storage": {
19
+ "name": "storage.visibility",
20
+ "match": "\\b(Public|Private)\\b"
21
}
22
23
0 commit comments