Browse Source

grammar: support numeric-only TTL values

tags/v1.1.3
cn 2 years ago
parent
commit
4dcaaa2215
3 changed files with 8 additions and 1 deletions
  1. +6
    -0
      CHANGELOG.md
  2. +1
    -0
      example.zone
  3. +1
    -1
      grammars/zonefile.cson

+ 6
- 0
CHANGELOG.md View File

@@ -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
- 0
example.zone 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
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


+ 1
- 1
grammars/zonefile.cson View File

@@ -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