Skip to content

Commit d050a36

Browse files
author
jneen
committed
remove unneeded Name::Tag declaration
1 parent 3d475dd commit d050a36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rouge/lexers/dylan.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Dylan < RegexLexer
2424
operators = Set.new %w(+ - * / ^ = == ~ ~= ~== < <= > >= & | :=)
2525

2626
state :root do
27-
rule %r/^[\w-]+:/, Comment::Preproc, :header
27+
rule %r/^[\w.-]+:/, Comment::Preproc, :header
2828
rule %r/\s+/, Text::Whitespace
2929
rule(%r//) { goto :main }
3030
end
@@ -71,7 +71,6 @@ class Dylan < RegexLexer
7171
rule %r/#x[0-9a-f]+/i, Literal::Number::Hex
7272

7373
# Names
74-
rule %r/[-\w\d\.]+:/, Name::Tag
7574
rule %r/[-]/, Operator
7675

7776
# Operators and punctuation

0 commit comments

Comments
 (0)