Skip to content

Commit

Permalink
Add support for *.svelte files as alias of HTML
Browse files Browse the repository at this point in the history
[Svelte framework](https://svelte.technology/) will use `*.svelte` extension for its component files —  sveltejs/svelte#2067. It would be nice to add highlighting for it.
  • Loading branch information
kugaevsky authored Feb 8, 2019
1 parent e957c74 commit 2f4518e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HTML < RegexLexer
title "HTML"
desc "HTML, the markup language of the web"
tag 'html'
filenames '*.htm', '*.html', '*.xhtml'
filenames '*.htm', '*.html', '*.xhtml', '*.svelte'
mimetypes 'text/html', 'application/xhtml+xml'

def self.detect?(text)
Expand Down

0 comments on commit 2f4518e

Please sign in to comment.