Fun thing about using bleeding-edge Java features: a surprising number of syntax highlighters don't know about some of the new-ish keywords and don't highlight them as such.
Fun thing about using bleeding-edge Java features: a surprising number of syntax highlighters don't know about some of the new-ish keywords and don't highlight them as such. 1 comment
|
@grishka Interesting. Perhaps it's because most new keywords are contextual. For example, `sealed` only has special meaning in combination with `class` so things like `boolean sealed = true;` are allowed. If a syntax highlighter only looks at individual lexical tokens, it can't differentiate between those contexts and some highlighters may not want to deal with this