From: Johannes Sixt Date: Thu, 10 Mar 2022 19:11:11 GMT Subject: Re: [PATCH v5] userdiff: add builtin diff driver for kotlin language. Message-ID: <7214a40b-c067-0465-28da-fb303591d876@kdbg.org> In-Reply-To: <64677295-e7fd-ba4b-ce68-fe62132ca504@gmail.com> Am 10.03.22 um 17:29 schrieb Jaydeep Das: >>     "|[0-9][.0-9_]*([Ee][-+]?[0-9]+)?[fFlLuU]*" >> > > The problem with this approach is that it matches `2..5` as a single token. > However in Kotlin, `..` is used to specify a range so 2..5 should be > broken into > 2 .. and 5. Good catch. Then we have to be more restrictive with the fractional part: "|[0-9][0-9_]*([.][0-9_]*)([Ee][-+]?[0-9]+)?[fFlLuU]*" -- Hannes