Minor update of grammar for better strings

This commit is contained in:
2018-08-29 19:40:11 +02:00
parent bf9ac3587d
commit a3953d267d
2 changed files with 5 additions and 5 deletions

View File

@ -35,9 +35,9 @@ module.exports = grammar({
sum_expr: $ => prec.left(1, seq( $.scalar_expr, choice('+','-'), $.scalar_expr )), sum_expr: $ => prec.left(1, seq( $.scalar_expr, choice('+','-'), $.scalar_expr )),
coordinate_expr: $ => seq( $.scalar_expr, '|', $.scalar_expr, '|', $.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), prototype: $ => seq( $.identifier, ':', $.function_application),
resources: $ => seq( 'Resources:', repeat($.resource)), resources: $ => seq( 'Resources', ':', repeat($.resource)),
resource: $ => seq( $.identifier, ':', $.function_application), resource: $ => seq( $.identifier, ':', $.function_application),
literal: $ => choice ( $.numeric_literal, $.unit_literal, $.string_literal ), literal: $ => choice ( $.numeric_literal, $.unit_literal, $.string_literal ),

View File

@ -1,10 +1,10 @@
{ {
"name": "openscenarionext-grammar", "name": "openscenarionext-grammar",
"version": "0.1.0", "version": "0.1.1",
"description": "OpenScenarioNext Prototype Grammar", "description": "OpenScenarioNext Prototype Grammar",
"repository": { "repository": {
"type" : "git", "type": "git",
"url" : "https://apps.pmsf.net/stash/scm/osn/osn-grammar.git" "url": "https://apps.pmsf.net/stash/scm/osn/osn-grammar.git"
}, },
"main": "index.js", "main": "index.js",
"config": { "config": {