refactor: move comment tokenizer to separate file

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-07 14:00:07 +01:00
parent 40a88ba899
commit 2ea0599b1b
2 changed files with 14 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
from mistletoe.block_token import BlockToken
class Comment(BlockToken):
@staticmethod
def start(line):
return line.startswith("%")
@classmethod
def read(cls, lines):
next(lines)
return None