Skip to main content

oak_liquid/lsp/formatter/
mod.rs

1use crate::language::LiquidLanguage;
2/// Formatter module for Liquid
3///
4/// This module provides code formatting support for Liquid templates.
5
6/// Formatter for Liquid templates
7#[derive(Debug, Clone)]
8pub struct LiquidFormatter {
9    indent_size: usize,
10}
11
12impl LiquidFormatter {
13    /// Creates a new Liquid formatter
14    pub fn new() -> Self {
15        Self { indent_size: 4 }
16    }
17
18    /// Format the given source code
19    pub fn format(&self, source: &str) -> String {
20        source.to_string()
21    }
22}
23
24impl Default for LiquidFormatter {
25    fn default() -> Self {
26        Self::new()
27    }
28}