Skip to content

Commit

Permalink
refactor(lexer): improve front matter and code parsing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Oct 12, 2024
1 parent ced541f commit d6ab287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shirelang/src/main/grammar/ShireLexer.flex
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ AFTER_STREAMING =afterStreaming
%%
<YYINITIAL> {
"---" {
if (hasFrontMatter | isCodeStart) {
if (hasFrontMatter && isInsideFrontMatter == false && isCodeStart) {
return CODE_CONTENT;
} else {
isInsideFrontMatter = true;
Expand Down

0 comments on commit d6ab287

Please sign in to comment.