From 1eb39f8b0ae2127ee287af8d9e30f1a894b563cc Mon Sep 17 00:00:00 2001 From: AnHeuermann <38031952+AnHeuermann@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:26:00 +0200 Subject: [PATCH] Fixing _constraint_annotation_list - constraint wasn't reachable --- package-lock.json | 4 ++-- package.json | 2 +- rules/a4-equations.js | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index fbbda07..0974957 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tree-sitter-metamodelica", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "tree-sitter-metamodelica", - "version": "0.2.0", + "version": "0.2.1", "hasInstallScript": true, "license": "SEE LICENSE IN OSMC-License.txt", "dependencies": { diff --git a/package.json b/package.json index f365f8e..d52c0e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tree-sitter-metamodelica", - "version": "0.2.0", + "version": "0.2.1", "description": "MetaModelica grammar for tree-sitter", "main": "index.js", "types": "bindings/node", diff --git a/rules/a4-equations.js b/rules/a4-equations.js index 558a794..eabc1af 100644 --- a/rules/a4-equations.js +++ b/rules/a4-equations.js @@ -61,7 +61,6 @@ module.exports = { repeat($._constraint_annotation_list) )), - // TODO: Do look ahead _equation_annotation_list: $ => choice( seq( $.equation, @@ -73,11 +72,9 @@ module.exports = { ) ), - // TODO: What the heck is `{ ... }?` ? - // TODO: Do look ahead _constraint_annotation_list: $ => choice( seq( - $.equation, + $.constraint, $._SEMICOLON ), seq(