Skip to content

Commit

Permalink
Include @codemirror/lang-liquid
Browse files Browse the repository at this point in the history
FEATURE: Add an entry for Liquid templates.
  • Loading branch information
marijnh committed Sep 20, 2023
1 parent ffbf262 commit 92d565b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@codemirror/lang-java": "^6.0.0",
"@codemirror/lang-javascript": "^6.0.0",
"@codemirror/lang-json": "^6.0.0",
"@codemirror/lang-liquid": "^6.0.0",
"@codemirror/lang-less": "^6.0.0",
"@codemirror/lang-markdown": "^6.0.0",
"@codemirror/lang-php": "^6.0.0",
Expand Down
7 changes: 7 additions & 0 deletions src/language-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ export const languages = [
return import("@codemirror/lang-less").then(m => m.less())
}
}),
LanguageDescription.of({
name: "Liquid",
extensions: ["liquid"],
load() {
return import("@codemirror/lang-liquid").then(m => m.liquid())
}
}),
LanguageDescription.of({
name: "MariaDB SQL",
load() { return sql("MariaSQL") }
Expand Down

0 comments on commit 92d565b

Please sign in to comment.