The function buffer:style_of_name("comment") returns the style number associated with the style comment, whose index is 2.
However, the following code:
corrects the style selection to comment.
I've tested buffer:style_of_name("comment") and it indeed returns 2, the correct index for comment (as Ctrl+I indicates). Therefore, the problem must be with buffer.eol_annotation_style.
The function
buffer:style_of_name("comment")
returns the style number associated with the stylecomment
, whose index is2
. However, the following code:will result in these annotations using the
string
style, whose index is3
. Instead, the following code:corrects the style selection to
comment
. I've testedbuffer:style_of_name("comment")
and it indeed returns2
, the correct index forcomment
(as Ctrl+I indicates). Therefore, the problem must be withbuffer.eol_annotation_style
.