Skip to content

Commit

Permalink
added *.Dockerfile filename extension
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster777 committed Jan 7, 2019
1 parent cb7828d commit 8d1f1f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Docker < RegexLexer
desc "Dockerfile syntax"
tag 'docker'
aliases 'dockerfile'
filenames 'Dockerfile', '*.docker'
filenames 'Dockerfile', '*.Dockerfile', '*.docker'
mimetypes 'text/x-dockerfile-config'

KEYWORDS = %w(
Expand Down
1 change: 1 addition & 0 deletions spec/lexers/docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
it 'guesses by filename' do
assert_guess :filename => 'Dockerfile'
assert_guess :filename => 'docker.docker'
assert_guess :filename => 'some.Dockerfile'
end

it 'guesses by mimetype' do
Expand Down

0 comments on commit 8d1f1f6

Please sign in to comment.