blob: 6b7fdb83a1993a5b2cfdfab2346427897be427d1 [file] [log] [blame]
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
import { span } from "../html/tags.mjs";
import { color } from "../html/styles.mjs";
import { Formatter } from "./formatter.mjs";
import { NUMBER_LITERAL_COLOR } from "../theme/colors.mjs";
function float(kotlinInt) {
return span(
[color(NUMBER_LITERAL_COLOR)],
[kotlinInt.value + "f"]
)
}
export default Formatter.create(float)