commit ad7a081d97b29d74230fdf2ff6a4f3f03f91a4b8 Author: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Sun Jan 10 19:41:11 2021 +0100 Init atom language package for mblf - As colors are pretty diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c3d858c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.1.0 - First Release +* Every feature added +* Every bug fixed diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..c184f78 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +Copyright (c) 2021 Raymonzut + +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..45dbce6 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# MBLF language package + +The atom language package for mblf, by the makers of mblf diff --git a/grammars/mblf.cson b/grammars/mblf.cson new file mode 100644 index 0000000..39c2053 --- /dev/null +++ b/grammars/mblf.cson @@ -0,0 +1,14 @@ +# If this is your first time writing a language grammar, check out: +# - https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/ + +'scopeName': 'source.mblf' +'name': 'Mblf' +'fileTypes': [ + 'extension' +] +'patterns': [ + { + 'match': '^\\s*@@.*$' + 'name': 'comment' + } +] diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..af4d3b6 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "language-mblf", + "version": "0.0.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..f90c90b --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "language-mblf", + "version": "0.0.0", + "description": "The atom language package for mblf, by the makers of mblf", + "keywords": [ + "mblf", + "language", + "grammar" + ], + "repository": "https://github.com/Brainfuck-Project/language-mblf", + "license": "MIT", + "engines": { + "atom": ">=1.0.0 <2.0.0" + } +} diff --git a/settings/language-mblf.cson b/settings/language-mblf.cson new file mode 100644 index 0000000..40a1e5c --- /dev/null +++ b/settings/language-mblf.cson @@ -0,0 +1,6 @@ +# If you want some examples of settings, check out: +# https://github.com/atom/language-gfm/blob/master/settings/gfm.cson + +'.source.mblf': + 'editor': + 'commentStart': '@@ ' diff --git a/snippets/language-mblf.cson b/snippets/language-mblf.cson new file mode 100644 index 0000000..f75422c --- /dev/null +++ b/snippets/language-mblf.cson @@ -0,0 +1,7 @@ +# If you want some example snippets, check out: +# https://github.com/atom/language-javascript/blob/master/snippets/javascript.cson + +'.source.mblf': + 'Method documentation': + 'prefix': 'doc' + 'body': '@@ ${1:method} - ${2:description}' diff --git a/spec/language-mblf-spec.coffee b/spec/language-mblf-spec.coffee new file mode 100644 index 0000000..2ec1fba --- /dev/null +++ b/spec/language-mblf-spec.coffee @@ -0,0 +1,16 @@ +# If you want an example of language specs, check out: +# https://github.com/atom/language-javascript/blob/master/spec/javascript-spec.coffee + +describe "Mblf grammar", -> + grammar = null + + beforeEach -> + waitsForPromise -> + atom.packages.activatePackage("language-mblf") + + runs -> + grammar = atom.syntax.grammarForScopeName("source.mblf") + + it "parses the grammar", -> + expect(grammar).toBeTruthy() + expect(grammar.scopeName).toBe "source.mblf"