From a3953d267da01a868f93024600fe8eb0653b9bd3 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Wed, 29 Aug 2018 19:40:11 +0200 Subject: [PATCH] Minor update of grammar for better strings --- grammar.js | 4 ++-- package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/grammar.js b/grammar.js index 75ea107..eaf6119 100644 --- a/grammar.js +++ b/grammar.js @@ -35,9 +35,9 @@ module.exports = grammar({ sum_expr: $ => prec.left(1, seq( $.scalar_expr, choice('+','-'), $.scalar_expr )), coordinate_expr: $ => seq( $.scalar_expr, '|', $.scalar_expr, '|', $.scalar_expr ), - prototypes: $ => seq( 'Prototypes:', repeat($.prototype)), + prototypes: $ => seq( 'Prototypes', ':', repeat($.prototype)), prototype: $ => seq( $.identifier, ':', $.function_application), - resources: $ => seq( 'Resources:', repeat($.resource)), + resources: $ => seq( 'Resources', ':', repeat($.resource)), resource: $ => seq( $.identifier, ':', $.function_application), literal: $ => choice ( $.numeric_literal, $.unit_literal, $.string_literal ), diff --git a/package.json b/package.json index 365aaa5..f743377 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "openscenarionext-grammar", - "version": "0.1.0", + "version": "0.1.1", "description": "OpenScenarioNext Prototype Grammar", "repository": { - "type" : "git", - "url" : "https://apps.pmsf.net/stash/scm/osn/osn-grammar.git" + "type": "git", + "url": "https://apps.pmsf.net/stash/scm/osn/osn-grammar.git" }, "main": "index.js", "config": {