aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/journal_lib/parse/lexers/l_ledger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal_lib/parse/lexers/l_ledger.py b/src/journal_lib/parse/lexers/l_ledger.py
index ec245f0..6bcd24e 100644
--- a/src/journal_lib/parse/lexers/l_ledger.py
+++ b/src/journal_lib/parse/lexers/l_ledger.py
@@ -181,6 +181,8 @@ class JournalLexer(LexWrapper):
# Check if the comment is at the start of a line (considering whitespaces)
line_start = t.lexer.lexdata.rfind("\n", 0, t.lexpos) + 1
pre_comment = t.lexer.lexdata[line_start : t.lexpos]
+ # Remove the leading characters
+ t.value = t.value.lstrip(" ;")
# If the comment is at the start of a line, it's a standalone comment
if pre_comment.isspace() or pre_comment == "":