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 9ca5ba0 commit 604d67eCopy full SHA for 604d67e
web/public/mta-keyword_linker.js
@@ -1,10 +1,17 @@
1
let allFunctions = new Set();
2
3
+const wantedScopes = new Set([
4
+ "support.function.mta-shared",
5
+ "support.function.mta-server",
6
+ "support.function.mta-client",
7
+ "keyword.mta"
8
+]);
9
+
10
function extractFunctions(tmLanguage, textContent) {
11
const result = new Set();
12
13
tmLanguage.patterns?.forEach(({ match, name }) => {
- if (!match) return;
14
+ if (!match || !wantedScopes.has(name)) return;
15
16
if (name === "keyword.mta") {
17
const regex = new RegExp(match.replace(/\\\\/g, "\\"), "g");
0 commit comments