mirror of
https://github.com/cmur2/language-zonefile.git
synced 2024-12-21 06:54:25 +01:00
Fiat lux
This commit is contained in:
commit
136fa62e04
7
CHANGELOG.md
Normal file
7
CHANGELOG.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 1.0.0 (November 11, 2017)
|
||||||
|
|
||||||
|
NEW FEATURES:
|
||||||
|
|
||||||
|
- Initial release of the [Sublime Text package](https://github.com/sixty4k/st2-zonefile) as package for Atom
|
20
LICENSE
Normal file
20
LICENSE
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Copyright (c) 2016 Christian Nicolai
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Bind Zone File language support in Atom
|
||||||
|
|
||||||
|
Adds basic syntax highlighting based on the [Sublime Text package](https://github.com/sixty4k/st2-zonefile) to zone files in Atom.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
language-zonefile is licensed under the MIT License. See LICENSE for more information.
|
58
grammars/zonefile.cson
Normal file
58
grammars/zonefile.cson
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
scopeName: 'source.zonefile'
|
||||||
|
name: 'Bind Zone File'
|
||||||
|
fileTypes: [
|
||||||
|
'zone'
|
||||||
|
'db'
|
||||||
|
]
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
|
match: ';.*'
|
||||||
|
name: 'comment.line.semicolon.zonefile'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
match: '@'
|
||||||
|
name: 'keyword.directive.zonefile'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
match: '\\$(ORIGIN|origin|TTL|ttl|INCLUDE|include)\\s*([^;]*)(;.*)?'
|
||||||
|
name: 'keyword.directive.zonefile'
|
||||||
|
captures:
|
||||||
|
'2':
|
||||||
|
name: 'variable.other.directive.zonefile'
|
||||||
|
'3':
|
||||||
|
name: 'comment.line.semicolon.zonefile'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
match: '\\d+(H|h|D|d|W|w|M|m|Y|y)'
|
||||||
|
name: 'variable.other.timeunit.zonefile'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
begin: '([A-Za-z0-9_.-]*)\\s+(?:([0-9A-Za-z]*)\\s+)?([I|i][N|n]\\s+[A-Za-z0-9]+)\\s+(.*)\\('
|
||||||
|
beginCaptures:
|
||||||
|
'2':
|
||||||
|
name: 'variable.other.timeunit.zonefile'
|
||||||
|
'3':
|
||||||
|
name: 'keyword.resourcetype.zonefile'
|
||||||
|
'4':
|
||||||
|
name: 'string.quoted.single.resource.address.zonefile'
|
||||||
|
end: '\\)'
|
||||||
|
name: 'string.quoted.single.address.zonefile'
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
|
match: ';.*'
|
||||||
|
name: 'comment.line.semicolon.zonefile'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
{
|
||||||
|
match: '([A-Za-z0-9_.-]*)\\s+(?:([0-9A-Za-z]*)\\s+)?([I|i][N|n]\\s+[A-Za-z0-9]+)\\s+(.*)'
|
||||||
|
name: 'string.quoted.single.address.zonefile'
|
||||||
|
captures:
|
||||||
|
'2':
|
||||||
|
name: 'variable.other.timeunit.zonefile'
|
||||||
|
'3':
|
||||||
|
name: 'keyword.resourcetype.zonefile'
|
||||||
|
'4':
|
||||||
|
name: 'string.quoted.single.resource.address.zonefile'
|
||||||
|
}
|
||||||
|
]
|
17
package.json
Normal file
17
package.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "language-zonefile",
|
||||||
|
"description": "Bind Zone File language support in Atom",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"engines": {
|
||||||
|
"atom": "*"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/cmur2/language-zonefile",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/cmur2/language-zonefile.git"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/cmur2/language-zonefile/issues"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user