Don't allow <script> blocks to be nested. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/eb6c29e
This commit is contained in:
Michael Teichgräber 2012-04-30 02:14:03 +02:00
parent caef05e3ed
commit d23584ac81
3 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ const (
// rebuild it using // rebuild it using
// make nuke // make nuke
// make parser // make parser
needParserIfaceVersion = parserIfaceVersion_8 needParserIfaceVersion = parserIfaceVersion_9
) )
// Markdown Options: // Markdown Options:

View File

@ -28,7 +28,7 @@ import (
) )
const ( const (
parserIfaceVersion_8 = iota parserIfaceVersion_9 = iota
) )
// Semantic value of a parsing action. // Semantic value of a parsing action.
@ -397,7 +397,7 @@ HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockClos
HtmlBlockOpenScript = '<' Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* '>' HtmlBlockOpenScript = '<' Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* '>'
HtmlBlockCloseScript = '<' Spnl '/' ("script" | "SCRIPT") Spnl '>' HtmlBlockCloseScript = '<' Spnl '/' ("script" | "SCRIPT") Spnl '>'
HtmlBlockScript = HtmlBlockOpenScript (HtmlBlockScript | !HtmlBlockCloseScript .)* HtmlBlockCloseScript HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript
HtmlBlockInTags = HtmlBlockAddress HtmlBlockInTags = HtmlBlockAddress

2
portid
View File

@ -1 +1 @@
169 171