From 895edacacf841c7659a9287aa061659057f02f10 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Thu, 30 Aug 2018 08:58:23 +0200 Subject: [PATCH] Initial language pack for atom commit --- README.md | 1 + grammars/openscenarionext.cson | 39 ++++++++++++++++++++++++++++++++++ package.json | 17 +++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 README.md create mode 100644 grammars/openscenarionext.cson create mode 100644 package.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..98980c9 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Prototypical language support for OpenScenarioNext language draft. diff --git a/grammars/openscenarionext.cson b/grammars/openscenarionext.cson new file mode 100644 index 0000000..1cb5988 --- /dev/null +++ b/grammars/openscenarionext.cson @@ -0,0 +1,39 @@ +name: 'OpenScenarioNext' +scopeName: 'source.openscenarionext' +type: 'tree-sitter' +parser: 'openscenarionext-grammar' + +fileTypes: [ + 'osn' +] + +scopes: + 'source_file': 'source.openscenarionext' + 'comment': 'comment.block' + '"Scenario"': 'keyword.control' + '"Act"': 'keyword.control' + '"Prototypes"': 'keyword.control' + '"Resources"': 'keyword.control' + 'string_literal': 'string.quoted.double' + 'numeric_literal': 'constant.numeric.decimal' + 'function_application > identifier': 'entity.name.function' + 'record_expr > identifier:nth-child(2)': 'variable.other.member' + +folds: [ + + { + type: 'comment' + } + + { + type: 'scenario' + } + + { + type: 'act' + } + +] + +comments: + start: '// ' diff --git a/package.json b/package.json new file mode 100644 index 0000000..a1ac15f --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "version": "0.1.0", + "name": "language-openscenarionext", + "description": "Atom language support for OpenScenarioNext Draft", + "repository": { + "type": "git", + "url": "https://apps.pmsf.net/stash/scm/osn/osn-atom.git" + }, + "license": "MIT", + "engines": { + "atom": "*", + "node": "*" + }, + "dependencies": { + "openscenarionext-grammar": "^0.1.0" + } +}