grammar: support numeric-only TTL values

This commit is contained in:
cn 2018-03-16 22:35:13 +01:00
parent 17de36de6a
commit 4dcaaa2215
3 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## 1.1.3 (March 16, 2018)
IMPROVEMENTS:
- Support numeric-only TTL values
## 1.1.2 (February 21, 2018) ## 1.1.2 (February 21, 2018)
IMPROVEMENTS: IMPROVEMENTS:

View File

@ -19,6 +19,7 @@ ns1 IN AAAA 2001:0db8::1 ; name server IPv6 address
www IN A 192.168.0.2 ; web server www IN A 192.168.0.2 ; web server
ftp IN CNAME www.example.com. ; ftp alias (absolute) ftp IN CNAME www.example.com. ; ftp alias (absolute)
xmpp IN CNAME www ; xmpp alias (relative) xmpp IN CNAME www ; xmpp alias (relative)
dyn 60 IN CNAME www ; dynamic alias (TTL in seconds)
; mail ; mail
IN MX 10 mail.example.org. ; external mail provider IN MX 10 mail.example.org. ; external mail provider

View File

@ -29,7 +29,7 @@ repository:
name: 'variable.other.entry.control.zonefile' name: 'variable.other.entry.control.zonefile'
} }
{ {
begin: '((@)|([A-Za-z0-9_.-]+))?(\\s+\\d+[A-Za-z])?(\\s+IN|in|CH|ch)?\\s+(\\w+)\\s+' begin: '((@)|([A-Za-z0-9_.-]+))?(\\s+\\d+[A-Za-z]*)?(\\s+IN|in|CH|ch)?\\s+(\\w+)\\s+'
beginCaptures: beginCaptures:
'2': '2':
name: 'keyword.entry.resource.record.zonefile' name: 'keyword.entry.resource.record.zonefile'