Skip to content

Commit

Permalink
feat: always fail when parsing an incorrect char for TODO items
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Nov 5, 2021
1 parent b440c55 commit e7a3850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ enum TokenType : char
MULTI_DEFINITION,
MULTI_DEFINITION_SUFFIX,

// FOOTNOTE,

BOLD,
ITALIC,
STRIKETHROUGH,
Expand Down Expand Up @@ -264,7 +266,7 @@ class Scanner
case '?':
lexer->result_symbol = m_LastToken = TODO_ITEM_UNCERTAIN;
break;
case '\0':
default:
advance(lexer);
return false;
}
Expand Down

0 comments on commit e7a3850

Please sign in to comment.