summaryrefslogtreecommitdiff
path: root/helix-core/src/diagnostic.rs
blob: c1a3b4c1021733036180310cdcd15957205d5f2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Range;

pub enum Severity {
    Error,
    Warning,
    Info,
    Hint,
}

pub struct Diagnostic {
    pub range: (usize, usize),
    pub line: usize,
    pub message: String,
    pub severity: Option<Severity>,
}