Open thorade opened 8 years ago
OK, it was 38a8b438f42a3b6cf97077870e36e393ff6c6187 that broke it (which makes sense). Did this work with Boris' grammar?
We replaced Raphaels grammar (v0.2.1) with Boris' grammar (v0.3.1). With Raphaels version, the min and max have the same color as the "final" keyword. Do you see what line of the grammar is responsible for the highlighting?
ah, of course, my bad, I didn't look closely enough. :-/ Presumably, it's because of these lines.
argh, min is also in here :-/
One idea: all function calls use parantheses. So maybe we can search for min(
and min (
instead of just min
. And so on. Or are there functions that do not take an argument (and can thus be called without parantheses)?
Or maybe just change it for min
and max
. These two take an argument for sure.
Or are there functions that do not take an argument (and can thus be called without parantheses)
I am not a Modelica expert, but even functions taking no arguments are (in other languages) typically invoked with func()
, not func
.
Another minor mismatch: In the following code example,
min
andmax
should have the same colour asquantity
andunit
.