Skip to content

Commit c2e552d

Browse files
committed
fix: Add _buildGrammar back to exports - it’s used by ohm-editor
1 parent 8e87884 commit c2e552d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ohm-js/src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ export function grammars(source, optNamespace) {
5858
return ns;
5959
}
6060

61+
// This is used by ohm-editor to instantiate grammars after incremental
62+
// parsing, which is not otherwise supported in the public API.
63+
export {buildGrammar as _buildGrammar};
64+
6165
export * from './main-kernel.js';
6266
export {IndentationSensitive as ExperimentalIndentationSensitive} from './IndentationSensitive.js';
6367
export {ohmGrammar};

0 commit comments

Comments
 (0)