Skip to content

Commit 0e6589e

Browse files
author
jneen
committed
add a spec and a url to the description
1 parent afe8c15 commit 0e6589e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

lib/rouge/lexers/dylan.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Rouge
55
module Lexers
66
class Dylan < RegexLexer
77
title 'Dylan'
8-
desc 'Dylan Language'
8+
desc 'Dylan Language (https://opendylan.org)'
99
tag 'dylan'
1010
filenames '*.dylan'
1111

spec/lexers/dylan_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- coding: utf-8 -*- #
2+
# frozen_string_literal: true
3+
4+
describe Rouge::Lexers::Dylan do
5+
let(:subject) { Rouge::Lexers::Dylan.new }
6+
7+
describe 'guessing' do
8+
include Support::Guessing
9+
10+
it 'guesses by filename' do
11+
assert_guess :filename => 'myfile.dylan'
12+
end
13+
end
14+
end

0 commit comments

Comments
 (0)