blob: 529bf903955f7a4388736fd2c10acaaa9c92091f [file]
/*
* 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 { STRING_LITERAL_COLOR } from "../theme/colors.mjs";
function string(kotlinString) {
const kotlinStringValue = kotlinString.value
let jsString = kotlinStringValue.$internalStr.value;
return span(
[color(STRING_LITERAL_COLOR)],
[jsString]
)
}
export default Formatter.create(string)