From 97a5ac7e6dd5a0b7b944eefee0b96ee6a6bf321b Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Wed, 22 Nov 2017 16:40:03 +0100 Subject: [PATCH] Fiat lux --- CHANGELOG.md | 7 +++++++ LICENSE | 20 ++++++++++++++++++++ README.md | 7 +++++++ grammars/fluentd.cson | 44 +++++++++++++++++++++++++++++++++++++++++++ package.json | 17 +++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 grammars/fluentd.cson create mode 100644 package.json diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..cf0275e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## 1.0.0 (November 22, 2017) + +NEW FEATURES: + +- Initial release of the [Sublime Text and TextMate package](https://github.com/adamchainz/fluentd.tmLanguage) as package for Atom diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6555836 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2017 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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..330610f --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Fluentd Config File language support in Atom + +Adds basic syntax highlighting based on the [Sublime Text and TextMate package](https://github.com/adamchainz/fluentd.tmLanguage) to `fluent.conf` files in Atom. + +## License + +language-fluentd is licensed under the MIT License. See LICENSE for more information. diff --git a/grammars/fluentd.cson b/grammars/fluentd.cson new file mode 100644 index 0000000..7ae55bb --- /dev/null +++ b/grammars/fluentd.cson @@ -0,0 +1,44 @@ +scopeName: 'source.fluentd' +name: 'Fluentd Config File' +fileTypes: [ + 'fluent.conf' +] +patterns: [ + { + match: "#.*" + name: "comment.line.number-sign.fluentd" + } + { + match: "(<)(\\w+)(\\s([^>]+?))?(>)" + name: "entity.tag.start.fluentd" + captures: + "1": + name: "punctuation.definition.tag.fluentd" + "2": + name: "entity.tag.fluentd" + "4": + name: "entity.other.attribute-name.fluentd" + "5": + name: "punctuation.definition.tag.fluentd" + } + { + match: "()" + name: "entity.tag.end.fluentd" + captures: + "1": + name: "punctuation.definition.tag.fluentd" + "2": + name: "entity.tag.fluentd" + "3": + name: "punctuation.definition.tag.fluentd" + } + { + match: "([^\\s]+)(\\s+([^\\n]+))?" + name: "keyword.directive.generic.fluentd" + captures: + "1": + name: "keyword.directive.fluentd" + "3": + name: "string.unquoted.fluentd" + } +] diff --git a/package.json b/package.json new file mode 100644 index 0000000..419abdf --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "language-fluentd", + "description": "Fluentd Config File language support in Atom", + "version": "0.0.0", + "engines": { + "atom": "*" + }, + "homepage": "https://github.com/cmur2/language-fluentd", + "repository": { + "type": "git", + "url": "https://github.com/cmur2/language-fluentd.git" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/cmur2/language-fluentd/issues" + } +}