Skip to content

Commit

Permalink
Fix in in for statement (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
phannebohm authored Jul 4, 2024
1 parent 26916fc commit 1d5fbb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions syntaxes/metamodelica.tmGrammar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ patterns:
name: string.quoted.double

# Keywords
- match: \b(for|if|when|while|then|loop|end if|end when|end for|end while|else|elsewhen|break|return|each|elseif|input|output)\b
- match: \b(for|if|when|while|in|then|loop|end if|end when|end for|end while|else|elsewhen|break|return|each|elseif|input|output)\b
name: keyword.control
- match: \b(matchcontinue|match|local|case|try|end matchcontinue|end match|end try)\b
name: keyword.control
Expand All @@ -72,7 +72,7 @@ patterns:
name: keyword.operator.arithmetic
- match: \=|\:\=
name: keyword.operator.assignment
- match: \b(algorithm|equation|protected|public|end|external|in|encapsulated)\b
- match: \b(algorithm|equation|protected|public|end|external|encapsulated)\b
name: keyword

# Support
Expand Down
2 changes: 1 addition & 1 deletion test/metamodelica/Function.test.mo
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ algorithm
// ^^^^^^^^^ source.metamodelica keyword
for xi in x loop
// ^^^ source.metamodelica keyword.control
// ^^ source.metamodelica keyword
// ^^ source.metamodelica keyword.control
// ^^^^ source.metamodelica keyword.control
y := xi::y;
// ^^ source.metamodelica keyword.operator.assignment
Expand Down

0 comments on commit 1d5fbb3

Please sign in to comment.