check comma count in enum instead

This commit is contained in:
Daniel Gavin
2021-04-22 00:55:25 +02:00
parent 43589a56b7
commit ab53900c95
2 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ sort_attribute :: proc(s: ^[dynamic]^ast.Attribute) -> sort.Interface {
@(private)
comment_before_position :: proc(p: ^Printer, pos: tokenizer.Pos) -> bool {
if len(p.comments) <= p.latest_comment_index {
return false;
}