mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-10 00:31:20 +03:00
Should fix a tokenizer bug.
Fixes in markdown grammar.
This commit is contained in:
@@ -78,10 +78,10 @@ void addMarkdown() {
|
||||
|
||||
{ "inside_bold",
|
||||
{
|
||||
{ { "include" }, "#strings", "normal" },
|
||||
{ { "include" }, "#decorations_italic", "normal" },
|
||||
{ { "include" }, "#decorations_strikethrough", "normal" },
|
||||
{ { "include" }, "#links", "normal" },
|
||||
{ { "include", "#strings" }, "normal" },
|
||||
{ { "include", "#decorations_italic" }, "normal" },
|
||||
{ { "include", "#decorations_strikethrough" }, "normal" },
|
||||
{ { "include", "#links" }, "normal" },
|
||||
} },
|
||||
|
||||
{ "decorations_bold",
|
||||
@@ -107,10 +107,10 @@ void addMarkdown() {
|
||||
|
||||
{ "inside_italic",
|
||||
{
|
||||
{ { "include" }, "#strings", "normal" },
|
||||
{ { "include" }, "#decorations_bold", "normal" },
|
||||
{ { "include" }, "#decorations_strikethrough", "normal" },
|
||||
{ { "include" }, "#links", "normal" },
|
||||
{ { "include", "#strings" }, "normal" },
|
||||
{ { "include", "#decorations_bold" }, "normal" },
|
||||
{ { "include", "#decorations_strikethrough" }, "normal" },
|
||||
{ { "include", "#links" }, "normal" },
|
||||
} },
|
||||
|
||||
{ "decorations_italic",
|
||||
|
||||
@@ -248,7 +248,7 @@ static inline void popStack( SyntaxStateRestored& curState, SyntaxState& retStat
|
||||
return;
|
||||
}
|
||||
|
||||
if ( curState.currentLevel > 0 )
|
||||
if ( curState.currentLevel > 0 && fromPattern.hasSyntax() )
|
||||
curState.currentLevel--;
|
||||
|
||||
if ( retState.langStack[curState.currentLevel] != 0 &&
|
||||
|
||||
Reference in New Issue
Block a user