Skip to content

Commit

Permalink
Add export for SurrealQL Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Sep 10, 2024
1 parent d4a6ab8 commit 2b1122c
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 75 deletions.
3 changes: 2 additions & 1 deletion packages/codemirror-surrealql/src/surrealql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ export const surrealqlLanguage = LRLanguage.define({
},
});

type Scope = "default" | "permission" | "combined-results";
type Scope = "default" | "permission" | "combined-results" | "syntax";

const languageMap = new Map<Scope, LRLanguage>([
["default", surrealqlLanguage.configure({ top: "SurrealQL" })],
["permission", surrealqlLanguage.configure({ top: "PermissionInput" })],
["combined-results", surrealqlLanguage.configure({ top: "CombinedResults" })],
["syntax", surrealqlLanguage.configure({ top: "Syntax" })],
]);

/**
Expand Down
Loading

0 comments on commit 2b1122c

Please sign in to comment.