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 2d078e8 commit 743f4c9Copy full SHA for 743f4c9
packages/emnapi/script/preprocess.js
@@ -98,6 +98,7 @@ class Compilation {
98
if (matchResult = this.lines[lineNumber].match(/^\s*\/\/\s*#else\s*$/)) return this._elseDirective(lineNumber)
99
if (matchResult = this.lines[lineNumber].match(/^\s*\/\/\s*#endif\s*$/)) return this._endifDirective(lineNumber)
100
if (matchResult = this.lines[lineNumber].match(/^\s*\/\/\s*#error\s+(.+?)\s*$/)) return this._errorDirective(lineNumber, matchResult[1])
101
+ if (matchResult = this.lines[lineNumber].match(/^\s*\/\/\s*#(region|endregion)/)) return -1
102
103
throw new Error(`Syntax error: ${this.lines[lineNumber]}`)
104
}
0 commit comments