aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/diagnostic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/diagnostic.rs')
-rw-r--r--helix-core/src/diagnostic.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs
index 96ed6746..c1a3b4c1 100644
--- a/helix-core/src/diagnostic.rs
+++ b/helix-core/src/diagnostic.rs
@@ -1,7 +1,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>,
}