bnf top-level property

Mode bnf
final

Syntax highlighting mode for bnf.

Implementation

final bnf = Mode(
  refs: {},
  contains: [
    Mode(className: "attribute", begin: "<", end: ">"),
    Mode(
      begin: "::=",
      starts: Mode(
        end: "\$",
        contains: [
          Mode(begin: "<", end: ">"),
          cLineCommentMode,
          cBlockCommentMode,
          aposStringMode,
          quoteStringMode,
        ],
      ),
    ),
  ],
);