Skip to content

Commit

Permalink
feat: add hcl highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
yilanboy committed Jan 8, 2025
1 parent 37b7a31 commit 918594e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 132 deletions.
11 changes: 11 additions & 0 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@yaireo/tagify": "^4.32.1",
"autoprefixer": "^10.4.20",
"ckeditor5": "^44.0.0",
"highlight-hcl": "^0.0.2",
"highlight.js": "^11.11.1",
"highlight.svelte": "^0.1.2",
"laravel-vite-plugin": "^1.1.0",
Expand Down
130 changes: 0 additions & 130 deletions resources/ts/highlight-terraform.ts

This file was deleted.

4 changes: 2 additions & 2 deletions resources/ts/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import shell from 'highlight.js/lib/languages/shell';
import svelte from 'highlight.svelte';
import sql from 'highlight.js/lib/languages/sql';
import swift from 'highlight.js/lib/languages/swift';
import terraform from './highlight-terraform.js';
import hcl from 'highlight-hcl';
import typescript from 'highlight.js/lib/languages/typescript';
import yaml from 'highlight.js/lib/languages/yaml';

Expand Down Expand Up @@ -59,7 +59,7 @@ hljs.registerLanguage('shell', shell);
hljs.registerLanguage('svelte', svelte);
hljs.registerLanguage('sql', sql);
hljs.registerLanguage('swift', swift);
hljs.registerLanguage('terraform', terraform);
hljs.registerLanguage('hcl', hcl);
hljs.registerLanguage('toml', ini);
hljs.registerLanguage('typescript', typescript);
hljs.registerLanguage('xml', xml);
Expand Down

0 comments on commit 918594e

Please sign in to comment.