Skip to content

Commit

Permalink
fix(dns): highlight domain names as NameClass (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarneaux authored Nov 18, 2023
1 parent 07a90a9 commit b5afdee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/embedded/dns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<rule pattern="\b([\w\d.-])+\.($|\s)">
<token type="NameProperty"/>
</rule>
<rule pattern="^(@|[\w\d-]+)">
<rule pattern="([\w\d\.-]+\.[a-z-]{2,24}\.?|^(@|[\w\d-]+))">
<token type="NameClass"/>
</rule>
<rule pattern="^\$(TTL|GENERATE|INCLUDE|ORIGIN)">
Expand Down

0 comments on commit b5afdee

Please sign in to comment.