NppExtension icon indicating copy to clipboard operation
NppExtension copied to clipboard

Kotlin lowercase float literal

Open cvzi opened this issue 6 years ago • 1 comments

Hi, I am using the file kt-light.xml in Notepad++

Any chance you can add support for lowercase f suffix for float numbers, it works correctly for the uppercase suffix F:

val x = 1.5F // currently colored correctly
val y = 1.5f // currently not colored correctly

While looking into this, I found this reference which says underscores are allowed in numbers, so these two should be colored the same:

val c = 1000000    // currently colored correctly
val d = 1_000_000  // currently not colored correctly

cvzi avatar Oct 19 '18 19:10 cvzi

I have to clarify: the notepad++'s highlighting framework has limited support for complicated (we all hope we can use regex in this case) tokens. For the lowercase float lit, I'll take a look.

ice1000 avatar Oct 19 '18 23:10 ice1000