You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"comment": "common C++ instance var naming idiom -- fMemberName",
49
48
"match": "\\b(f|m)[A-Z]\\w*\\b",
50
49
"name": "variable.other.readwrite.member.cpp"
51
50
},
@@ -78,7 +77,7 @@
78
77
"name": "storage.modifier.cpp"
79
78
},
80
79
{
81
-
"begin": "(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t | (?:(?<!else|new|=)) # or word + space before name\n\t\t\t\t)\n\t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n\t\t\t\t\\s*(\\() # start bracket or end-of-line\n\t\t\t",
80
+
"begin": "(?x)\n(?:\n ^ |# beginning of line\n (?:(?<!else|new|=)) # or word + space before name\n)\n((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n\\s*(\\() # opening bracket",
82
81
"beginCaptures": {
83
82
"1": {
84
83
"name": "entity.name.function.cpp"
@@ -101,7 +100,7 @@
101
100
]
102
101
},
103
102
{
104
-
"begin": "(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t | (?:(?<!else|new|=)) # or word + space before name\n\t\t\t\t)\n\t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n\t\t\t\t\\s*(\\() # terminating semi-colon\n\t\t\t",
103
+
"begin": "(?x)\n(?:\n ^ |# beginning of line\n (?:(?<!else|new|=)) # or word + space before name\n)\n((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n\\s*(\\() # opening bracket",
105
104
"beginCaptures": {
106
105
"1": {
107
106
"name": "entity.name.function.cpp"
@@ -122,6 +121,9 @@
122
121
"include": "$base"
123
122
}
124
123
]
124
+
},
125
+
{
126
+
"include": "source.c"
125
127
}
126
128
],
127
129
"repository": {
@@ -162,7 +164,7 @@
162
164
"name": "punctuation.definition.parameters.c"
163
165
}
164
166
},
165
-
"match": "(?x)\n\t\t\t\t(\n\t\t\t\t\t(?!while|for|do|if|else|switch|catch|enumerate|return|r?iterate)(?:\\b[A-Za-z_][A-Za-z0-9_]*+\\b | :: )*+ # actual name\n\t\t\t\t)\n\t\t\t\t\\s*(\\()",
167
+
"match": "(?x)\n(\n (?!while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\n(?:\\b[A-Za-z_][A-Za-z0-9_]*+\\b|::)*+ # actual name\n)\n\\s*(\\() # opening bracket",
166
168
"name": "meta.function-call.c"
167
169
},
168
170
{
@@ -173,7 +175,7 @@
173
175
"constructor": {
174
176
"patterns": [
175
177
{
176
-
"begin": "(?x)\n\t\t\t\t(?:^\\s*) # begin-of-line\n\t\t\t\t((?!while|for|do|if|else|switch|catch|enumerate|r?iterate)[A-Za-z_][A-Za-z0-9_:]*) # actual name\n\t\t\t\t\\s*(\\() # start bracket or end-of-line\n\t\t\t",
178
+
"begin": "(?x)\n(?:^\\s*) # beginning of line\n((?!while|for|do|if|else|switch|catch|enumerate|r?iterate)[A-Za-z_][A-Za-z0-9_:]*) # actual name\n\\s*(\\() # opening bracket",
177
179
"beginCaptures": {
178
180
"1": {
179
181
"name": "entity.name.function.cpp"
@@ -196,7 +198,7 @@
196
198
]
197
199
},
198
200
{
199
-
"begin": "(?x)\n\t\t\t\t(:) # begin-of-line\n\t\t\t\t((?=\\s*[A-Za-z_][A-Za-z0-9_:]* # actual name\n\t\t\t\t\\s*(\\())) # start bracket or end-of-line\n\t\t\t",
201
+
"begin": "(?x)\n(:)\n(\n (?=\n\\s*[A-Za-z_][A-Za-z0-9_:]* # actual name\n\\s* (\\() # opening bracket\n)\n)",
"begin": "(?x)\n(?:\n ^ |\n (?:\n (?=\\s)(?<!else|new|return)(?<=\\w) # word + space before name\n |\n (?=\\s*[A-Za-z_])(?<!&&)(?<=[*&>]) # type modifier before name\n )\n)\n(\\s*)(?!(while|for|do|if|else|switch|catch|enumerate|return|sizeof|[cr]?iterate)\\s*\\()\n(\n (?:[A-Za-z_][A-Za-z0-9_]*+|::)++ # actual name\n |\n (?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\])) # if it is a C++ operator\n)\n\\s*(?=\\()",
237
+
"begin": "(?x)\n(?:\n ^ |\n(?:\n (?=\\s)(?<!else|new|return)(?<=\\w) # word + space before name\n |\n (?=\\s*[A-Za-z_])(?<!&&)(?<=[*&>]) # type modifier before name\n )\n)\n(\\s*)(?!(while|for|do|if|else|switch|catch|enumerate|return|sizeof|[cr]?iterate)\\s*\\()\n(\n (?:[A-Za-z_][A-Za-z0-9_]*+|::)++ # actual name\n |\n (?:(?<=operator)(?:[-*&<>=+!]+|\\(\\)|\\[\\]))\n)\n\\s*(?=\\()",
"match": "(?x)\n\t\t\t (?x)\n\t\t\t(?:\n\t\t\t (?: (?= \\s ) (?<!else|new|return)(?<=\\w)\\s+ # or word + space before name\n\t\t\t)\n\t\t\t)\n\t\t\t(\n\t\t\t\t(?:[A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t(?:(?<=operator) (?:[-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t\t\t)\n\t\t\t\\s*(\\()",
342
+
"match": "(?x)\n(?:\n(?:\n(?=\\s)(?<!else|new|return)\n(?<=\\w)\\s+ # or word + space before name\n)\n)\n(\n(?:[A-Za-z_][A-Za-z0-9_]*+ | :: )++ # actual name\n |\n(?:(?<=operator) (?:[-*&<>=+!]+ | \\(\\) | \\[\\]))\n)\n\\s*(\\() # opening bracket",
0 commit comments