Skip to content

Commit aa89bcd

Browse files
committed
Add haxe syntax highlighting
1 parent 0d0abd6 commit aa89bcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/stores/language.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const languageExtensions: LanguageExtension = {
5555
'dart': 'dart',
5656
'r': 'r',
5757
'hs': 'haskell',
58+
'hx': 'haxe',
5859
'ex': 'elixir',
5960
'erl': 'erlang',
6061
'fs': 'fsharp',
@@ -115,6 +116,7 @@ export const availableLanguages = [
115116
'c', 'chef', 'clojure', 'cmake', 'config', 'cpp', 'csharp', 'css', 'dart', 'diff',
116117
'dockerfile', 'editorconfig', 'elixir', 'env', 'erlang', 'fsharp', 'gas', 'gdb',
117118
'gherkin', 'gitignore', 'go', 'gradle', 'groovy', 'haskell', 'hex', 'html', 'ini',
119+
'haxe',
118120
'java', 'javascript', 'julia', 'json', 'jsx', 'kotlin', 'kubernetes', 'latex', 'less',
119121
'log', 'lua', 'makefile', 'markdown', 'matlab', 'mermaid', 'nasm', 'nim', 'nix',
120122
'ocaml', 'patch', 'perl', 'php', 'plantuml', 'powershell', 'properties', 'puppet',
@@ -126,4 +128,4 @@ export const availableLanguages = [
126128

127129
export function getLanguageFromExtension(ext: string): string {
128130
return languageExtensions[ext] || 'plaintext';
129-
}
131+
}

0 commit comments

Comments
 (0)