Skip to content

Commit

Permalink
feat(web): Use lang-punctual for punctual target
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Jan 19, 2025
1 parent ed12b4d commit 8238229
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 54 deletions.
114 changes: 61 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@codemirror/view": "^6.23.0",
"@flok-editor/cm-eval": "^1.3.0",
"@flok-editor/lang-tidal": "^1.3.0",
"@flok-editor/lang-punctual": "^1.3.0",
"@flok-editor/session": "^1.3.0",
"@radix-ui/react-dialog": "^1.1.4",
"@radix-ui/react-dropdown-menu": "^2.1.4",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
} from "@codemirror/view";
import { evalKeymap, flashField, remoteEvalFlash } from "@flok-editor/cm-eval";
import { tidal } from "@flok-editor/lang-tidal";
import { punctual } from "@flok-editor/lang-punctual";
import type { Document } from "@flok-editor/session";
import { highlightExtension } from "@strudel/codemirror";
import CodeMirror, {
Expand All @@ -48,6 +49,7 @@ const langExtensionsByLanguage: { [lang: string]: any } = {
javascript: javascript,
python: python,
tidal: tidal,
punctual: punctual,
};
const panicCodes = panicCodesUntyped as { [target: string]: string };

Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"hydra": "javascript",
"mercury-web": "javascript",
"mercury": "javascript",
"punctual": "tidal",
"punctual": "punctual",
"renardo": "python",
"sardine": "python",
"sclang": "javascript",
Expand Down

0 comments on commit 8238229

Please sign in to comment.