From cceda58ed69316ceac9f23393b9b93cbf1be49c0 Mon Sep 17 00:00:00 2001 From: Peter Boyer Date: Sun, 3 Jan 2016 21:18:09 -0500 Subject: [PATCH] One more --- doc/ace-javascript-target.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ace-javascript-target.md b/doc/ace-javascript-target.md index 5f4ea1716..a18bc11d9 100644 --- a/doc/ace-javascript-target.md +++ b/doc/ace-javascript-target.md @@ -190,7 +190,9 @@ var Honey = { 'requirePath': ['..'] }; // walk up to js folder, see Honey docs importScripts("../lib/require.js"); var antlr4_require = require; require = ace_require; +``` Now it's safe to load antlr, and the parsers generated for your language. Assuming that your language files (generated or hand-built) are in a folder with an index.js file that calls require for each file, your parser loading code can be as simple as follows: +```js // load antlr4 and myLanguage var antlr4, mylanguage; try {