Skip to content

Commit

Permalink
XQuery: .xqm suffix added
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGruen committed Jun 28, 2023
1 parent b81fb3b commit b02fee0
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/xquery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class XQuery < XPath
title 'XQuery'
desc 'XQuery 3.1: An XML Query Language'
tag 'xquery'
filenames '*.xquery', '*.xq'
filenames '*.xquery', '*.xq', '*.xqm'
mimetypes 'application/xquery'

def self.keywords
Expand Down
1 change: 1 addition & 0 deletions spec/lexers/xquery_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.xq'
assert_guess :filename => 'baz.xqm'
assert_guess :filename => 'bar.xquery'
end

Expand Down

0 comments on commit b02fee0

Please sign in to comment.