Browse Source

export helper functions for reuse in cpp grammar

pull/254/head
John Drouhard 1 year ago
parent
commit
f333471ec3
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      grammar.js

+ 6
- 2
grammar.js View File

@ -1369,8 +1369,6 @@ module.exports = grammar({
},
});
module.exports.PREC = PREC;
/**
*
* @param {string} suffix
@ -1468,3 +1466,9 @@ function commaSep(rule) {
function commaSep1(rule) {
return seq(rule, repeat(seq(',', rule)));
}
module.exports.PREC = PREC;
module.exports.preprocIf = preprocIf;
module.exports.preprocessor = preprocessor;
module.exports.commaSep = commaSep;
module.exports.commaSep1 = commaSep1;

Loading…
Cancel
Save