syntax - bhsd-harry/wikiparser-node GitHub Wiki
This is an internal document. For visitors, you can now go back to the home page.
// pattern (main)
var {firstChild} = Parser.parse("''");
assert.deepStrictEqual(firstChild.pattern, /^(?:'{5}|'{2,3})$/u);
// afterBuild (main)
var {firstChild} = Parser.parse("''");
try {
firstChild.setText("'");
} catch (e) {
assert.strictEqual(
e.message,
'QuoteToken cannot modify the syntax pattern!',
);
}