Skip to content

Commit f333471

Browse files
committed
export helper functions for reuse in cpp grammar
1 parent cf36b03 commit f333471

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

grammar.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,6 @@ module.exports = grammar({
13691369
},
13701370
});
13711371

1372-
module.exports.PREC = PREC;
1373-
13741372
/**
13751373
*
13761374
* @param {string} suffix
@@ -1468,3 +1466,9 @@ function commaSep(rule) {
14681466
function commaSep1(rule) {
14691467
return seq(rule, repeat(seq(',', rule)));
14701468
}
1469+
1470+
module.exports.PREC = PREC;
1471+
module.exports.preprocIf = preprocIf;
1472+
module.exports.preprocessor = preprocessor;
1473+
module.exports.commaSep = commaSep;
1474+
module.exports.commaSep1 = commaSep1;

0 commit comments

Comments
 (0)