snowride icon indicating copy to clipboard operation
snowride copied to clipboard

Keyword is not recognized as a keyword if it's not on the first position

Open alex-iongroup opened this issue 5 years ago • 1 comments

If a keyword is on the first column in the Assisted grid editing mode, then it's highlighted as a keyword and it's possible to navigate from it.

But if it's on the 2nd or any other column, it's just a plain text: image

alex-iongroup avatar Jan 24 '20 13:01 alex-iongroup

Currently, the list of keywords for which keyword highlighting happens is hardcoded: https://github.com/Soothsilver/snowride/blob/19e3f88bb93169035e07e30298a84b167fb1d861/src/main/java/cz/hudecekpetr/snowride/semantics/externallibraries/ExternalKeyword.java#L42

What RIDE is doing is that it considers the first cell "always a keyword" and the other cells "it's a keyword if I can find it, otherwise not" which works okay but sometimes lead me to false positives so I didn't do that in Snowride.

So one solution would be to do it anyway, just like RIDE: highlight everything that looks like a keyword, regardless of where it is.

Another solution would be to somehow allow you to specify additional keywords that take keywords as arguments.

Soothsilver avatar Jan 26 '20 13:01 Soothsilver