commit 895edacacf841c7659a9287aa061659057f02f10 Author: Pierre R. Mai Date: Thu Aug 30 08:58:23 2018 +0200 Initial language pack for atom commit 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" + } +}