Skip to content

Commit

Permalink
Highlight and|or|not as keyword.control
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Dec 18, 2023
1 parent c1e943e commit 3be54de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntaxes/modelica.tmGrammar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ patterns:
name: storage.type
- match: \b(constant|final|parameter|expandable|replaceable|redeclare|constrainedby|import|flow|stream|discrete|connector)\b
name: storage.modifier

# Keywords
- match: \b\s*([a-zA-Z])(?:([^ ;,:=\($]+)(;)?)([.]([a-zA-Z])(?:([^ ;,:=\($]+)(;)?)?)++\b
name: keyword
- match: \b(for|if|when|while|then|loop|end if|end when|end for|end while|else|elsewhen|and|break|return|each|elseif|input|output)\b
- 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
name: keyword.control
- match: \b(and|or|not)\b
name: keyword.operator.logical
name: keyword.control
- match: <|<\=|>|>\=|\=\=|<>
name: keyword.operator.comparison
- match: \+|\-|\.\+|\.\-|\*|\.\*|/|\./|\^
Expand Down

0 comments on commit 3be54de

Please sign in to comment.