parol-ls 4.4.0

Language server for parol parser generator
1
2
3
4
5
6
7
8
9
10
11
use lsp_types::{FormattingOptions, TextEdit};

use super::super::{Comments, FmtOptions};

pub(crate) trait Format {
    fn format(&self, options: &FormattingOptions, comments: Comments) -> Vec<TextEdit>;
}

pub(crate) trait Fmt {
    fn txt(&self, options: &FmtOptions, comments: Comments) -> (String, Comments);
}