Enable inlay hints (#183)

This commit is contained in:
ykiko
2025-08-19 14:28:12 +08:00
committed by GitHub
parent 41d5ac1173
commit c43702048e
25 changed files with 2594 additions and 921 deletions

View File

@@ -47,7 +47,7 @@ char *longestPalindrome_solv2(const char *s) {
st.add_code_block(cb, "c");
auto& para = st.add_paragraph();
para.append_text("para1").append_newline_char();
clice::print("{}", st.as_markdown());
std::println("{}", st.as_markdown());
};
test("BulletList") = [&] {
@@ -60,7 +60,7 @@ char *longestPalindrome_solv2(const char *s) {
Paragraph::Kind::Italic);
st.add_bullet_list().add_item().add_paragraph().append_text("Item5",
Paragraph::Kind::Strikethough);
clice::print("{}", st.as_markdown());
std::println("{}", st.as_markdown());
};
test("FullText") = [&] {
@@ -112,7 +112,7 @@ This is *Italic* **Bold** ~~Striketough~~, `InlineCode`
warnings.add_item().add_paragraph().append_text("warnings3: blah blah...");
st.add_ruler();
st.add_code_block("int test_bar(int foo, char **bar, char **baz);\n", "cpp");
clice::print("{}", st.as_markdown());
std::println("{}", st.as_markdown());
};
};