-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Sergio A. Vargas <[email protected]>
- Loading branch information
Showing
6 changed files
with
15 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { julia_andrey, NodeProp, syntaxTree, Text } from "../../imports/CodemirrorPlutoSetup.js" | ||
import { julia, NodeProp, syntaxTree, Text } from "../../imports/CodemirrorPlutoSetup.js" | ||
import lodash from "../../imports/lodash.js" | ||
|
||
// @ts-ignore | ||
|
@@ -9,7 +9,7 @@ import ManyKeysWeakMap from "https://esm.sh/[email protected]?pin=v113&tar | |
* @returns {SyntaxNode} | ||
*/ | ||
export let julia_to_ast = (julia_code) => { | ||
return /** @type {any} */ (julia_andrey().language.parser.parse(julia_code).topNode.firstChild) | ||
return /** @type {any} */ (julia().language.parser.parse(julia_code).topNode.firstChild) | ||
} | ||
|
||
// When you get errors while creating the templates (stuff related to substitutions), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { | ||
export { | ||
EditorState, | ||
EditorSelection, | ||
Compartment, | ||
EditorView, | ||
placeholder, | ||
julia_andrey, | ||
julia, | ||
keymap, | ||
syntaxHighlighting, | ||
history, | ||
|
@@ -64,70 +64,4 @@ import { | |
linter, | ||
setDiagnostics, | ||
//@ts-ignore | ||
} from "https://cdn.jsdelivr.net/gh/JuliaPluto/[email protected]/dist/index.es.min.js" | ||
|
||
export { | ||
linter, | ||
setDiagnostics, | ||
EditorState, | ||
EditorSelection, | ||
Compartment, | ||
EditorView, | ||
placeholder, | ||
julia_andrey, | ||
keymap, | ||
history, | ||
historyKeymap, | ||
defaultKeymap, | ||
indentMore, | ||
indentLess, | ||
moveLineUp, | ||
moveLineDown, | ||
tags, | ||
HighlightStyle, | ||
lineNumbers, | ||
highlightSpecialChars, | ||
foldGutter, | ||
drawSelection, | ||
indentOnInput, | ||
defaultHighlightStyle, | ||
bracketMatching, | ||
closeBrackets, | ||
rectangularSelection, | ||
highlightSelectionMatches, | ||
closeBracketsKeymap, | ||
searchKeymap, | ||
foldKeymap, | ||
syntaxTree, | ||
syntaxTreeAvailable, | ||
Decoration, | ||
ViewUpdate, | ||
ViewPlugin, | ||
WidgetType, | ||
Facet, | ||
StateField, | ||
StateEffect, | ||
Transaction, | ||
SelectionRange, | ||
indentUnit, | ||
combineConfig, | ||
NodeProp, | ||
autocomplete, | ||
html, | ||
htmlLanguage, | ||
javascriptLanguage, | ||
markdown, | ||
markdownLanguage, | ||
parseCode, | ||
parseMixed, | ||
PostgreSQL, | ||
pythonLanguage, | ||
sql, | ||
syntaxHighlighting, | ||
javascript, | ||
python, | ||
Text, | ||
css, | ||
cssLanguage, | ||
selectNextOccurrence, | ||
} | ||
} from "https://cdn.jsdelivr.net/gh/JuliaPluto/codemirror-pluto-setup@07a6ae6/dist/index.es.min.js" |