Skip to content

Commit

Permalink
Add .vapi extension to vala lexer (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
tancnle authored Nov 23, 2022
1 parent 09d64cf commit a4198a8
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/vala.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Rouge
module Lexers
class Vala < RegexLexer
tag 'vala'
filenames '*.vala'
filenames '*.vala', '*.vapi'
mimetypes 'text/x-vala'

title "Vala"
Expand Down
1 change: 1 addition & 0 deletions spec/lexers/vala_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

it 'guesses by filename' do
assert_guess :filename => 'foo.vala'
assert_guess :filename => 'foo.vapi'
end

it 'guesses by mimetype' do
Expand Down

0 comments on commit a4198a8

Please sign in to comment.