Skip to content

Commit

Permalink
Add Svelte as a top-level category (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Nov 10, 2022
1 parent e3834d8 commit 277b734
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ The AST explorer provides following code parsers:
- [solidity-parser-antlr][]
- SQL:
- [sqlite-parser][]
- Svelte:
- [svelte][]
- [WebIDL][]
- YAML:
- [yaml][]
Expand Down
5 changes: 5 additions & 0 deletions website/src/parsers/svelte/codeExample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
let name = 'world';
</script>

<h1>Hello {name}!</h1>
6 changes: 6 additions & 0 deletions website/src/parsers/svelte/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'codemirror/mode/htmlmixed/htmlmixed';

export const id = 'svelte';
export const displayName = 'Svelte';
export const mimeTypes = ['text/html'];
export const fileExtension = 'svelte';
1 change: 1 addition & 0 deletions website/src/parsers/svelte/svelte-parser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '../html/svelte';

0 comments on commit 277b734

Please sign in to comment.