Skip to content

Commit 8b9d750

Browse files
committed
Skip to the beginning of Syntax 0.5 comments, too
1 parent 47e307e commit 8b9d750

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fluent/syntax/ftlstream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ def skip_to_next_entry_start(self):
239239
if self.current_is('\n') and not self.peek_char_is('\n'):
240240
self.next()
241241

242-
if self.ch is None or self.is_message_id_start() or \
242+
if self.ch is None or \
243+
self.is_message_id_start() or \
244+
self.current_is('#') or \
243245
(self.current_is('/') and self.peek_char_is('/')) or \
244246
(self.current_is('[') and self.peek_char_is('[')):
245247
break

0 commit comments

Comments
 (0)