Open hmedina opened 7 years ago
Super expensive because context dependent!
For now the UI highlights stuff between '' wherever they are. We'd need to add the ability to highlight a word ONLY in algebraic expression! Not impossible but implies to make js/Kappa.js way way ... way smarter.
Variables are expected to be highlighted by the UI, normally appearing in a shade of electric blue. However, this only applies if the variable is declared using quote marks. Variables declared without these, even though perfectly valid for KaSim, are not highlighted as variables. For example:
Is displayed as:
Considering that
inputs.ka
files tend to strip variable names of their user-given flanking quotes if they don't contain certain characters (e.g.|
), this highlighting inconsistency becomes rampant.