"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const cstUtils = require("./lib-utils-cst-utils.cjs");
const grammarUtils = require("./lib-utils-grammar-utils.cjs");
const regexpUtils = require("./lib-utils-regexp-utils.cjs");
const ast = require("./lib-languages-generated-ast.cjs");
function createGrammarConfig(services) {
  const rules = [];
  const grammar = services.Grammar;
  for (const rule of grammar.rules) {
    if (ast.isTerminalRule(rule) && grammarUtils.isCommentTerminal(rule) && regexpUtils.isMultilineComment(grammarUtils.terminalRegex(rule))) {
      rules.push(rule.name);
    }
  }
  return {
    multilineCommentRules: rules,
    nameRegexp: cstUtils.DefaultNameRegexp
  };
}
exports.createGrammarConfig = createGrammarConfig;
//# sourceMappingURL=lib-languages-grammar-config.cjs.map
