oak_delphi/lsp/formatter/mod.rs
1#![doc = include_str!("readme.md")]
2/// Delphi 代码格式化器
3pub struct DelphiFormatter {
4 _indent_level: usize,
5 _indent_str: String,
6}
7
8impl DelphiFormatter {
9 pub fn new() -> Self {
10 Self { _indent_level: 0, _indent_str: " ".to_string() }
11 }
12
13 pub fn format(&self, source: &str) -> String {
14 // 简单实现
15 source.to_string()
16 }
17}