Skip to content

Commit

Permalink
Fixing _constraint_annotation_list (#8)
Browse files Browse the repository at this point in the history
- constraint wasn't reachable
  • Loading branch information
AnHeuermann authored Apr 19, 2024
1 parent 2972fa1 commit 822a111
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 1 addition & 4 deletions rules/a4-equations.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ module.exports = {
repeat($._constraint_annotation_list)
)),

// TODO: Do look ahead
_equation_annotation_list: $ => choice(
seq(
$.equation,
Expand All @@ -73,11 +72,9 @@ module.exports = {
)
),

// TODO: What the heck is `{ ... }?` ?
// TODO: Do look ahead
_constraint_annotation_list: $ => choice(
seq(
$.equation,
$.constraint,
$._SEMICOLON
),
seq(
Expand Down

0 comments on commit 822a111

Please sign in to comment.