Skip to content

Commit 98aaf65

Browse files
committed
Change Annotation to { code, message, span }
Annotations will now have unique codes: E0000 for errors, W0000 for warnings and H0000 for hints. They also now have a span, similar to Entries. If an annotation is only related to a single position in the file, the Span's start and end field should be equal.
1 parent b5a489d commit 98aaf65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/fluent.asdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module Fluent
3131
| Junk(str content)
3232
attributes (annot* annotations, span span)
3333

34-
annot = Annotation(str name, str message, int pos)
34+
annot = Annotation(str code, str message, span span)
3535
span = Span(int start, int end)
3636

3737
-- Pattern values

0 commit comments

Comments
 (0)