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 )),
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 ),

View File

@ -1,6 +1,6 @@
{
"name": "openscenarionext-grammar",
"version": "0.1.0",
"version": "0.1.1",
"description": "OpenScenarioNext Prototype Grammar",
"repository": {
"type": "git",