Skip to content

Commit

Permalink
fix: Add _buildGrammar back to exports - it’s used by ohm-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pdubroy committed Mar 4, 2023
1 parent 8e87884 commit c2e552d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ohm-js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export function grammars(source, optNamespace) {
return ns;
}

// This is used by ohm-editor to instantiate grammars after incremental
// parsing, which is not otherwise supported in the public API.
export {buildGrammar as _buildGrammar};

export * from './main-kernel.js';
export {IndentationSensitive as ExperimentalIndentationSensitive} from './IndentationSensitive.js';
export {ohmGrammar};
Expand Down

0 comments on commit c2e552d

Please # to comment.