b32 Frontmatter = 0;
b32 ExpectShebang = 0;
+ b32 SkipIniSection = 0;
// todo: remove
//b32 PreviousLineWasEmpty = 0;
/* could be used to differentiate between different frontmatter languages */
ASSERT(str_equals(Stripped, STR_LITERAL("#!ini")));
}
+ else if (SkipIniSection)
+ {
+ if (str_startsWith(Stripped, STR_LITERAL("[")))
+ {
+ if (str_equals(Stripped, STR_LITERAL("[tags]")))
+ {
+ SkipIniSection = 0;
+ /* skip section header */
+ }
+ }
+ }
else
{
if (0);
else if (str_startsWith(Stripped, STR_LITERAL("[")))
{
- ASSERT(str_equals(Stripped, STR_LITERAL("[tags]")));
- /* skip section header */
+ if (str_equals(Stripped, STR_LITERAL("[tags]")))
+ {
+ /* skip section header */
+ }
+ else
+ {
+ /* temporary - remove to parse other sections than tags */
+ SkipIniSection = 1;
+ }
}
else if (str_startsWith(Stripped, STR_LITERAL("---")))
{