cairo-lang-language-server 2.9.4

Cairo language server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Utilities for building Markdown texts.
//!
//! Markdown is used because this is the format used by the LSP protocol for rich text.

/// Horizontal rule.
pub const RULE: &str = "---\n";

/// Surround the given code with `cairo` fenced code block.
pub fn fenced_code_block(code: &str) -> String {
    format!("```cairo\n{code}\n```\n")
}