Browse Source

grammar: support numeric-only TTL values

tags/v1.1.3
cn 3 years ago
parent
commit
4dcaaa2215
  1. 6
      CHANGELOG.md
  2. 1
      example.zone
  3. 2
      grammars/zonefile.cson

6
CHANGELOG.md

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

1
example.zone

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

2
grammars/zonefile.cson

@ -29,7 +29,7 @@ repository:
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:
'2':
name: 'keyword.entry.resource.record.zonefile'

Loading…
Cancel
Save