@@ -1221,67 +1221,67 @@ class Parser {
12211221 public static $ commentEndToken = '--> ' ;
12221222
12231223 public static $ onResetParserList = [
1224- 'HeadingElementParser ' ,
1225- 'TableElementParser ' ,
1226- 'ListElementParser ' ,
1227- 'ParagraphElementParser ' ,
1228- 'BoxElementParser ' ,
1229- 'ReferenceListParser ' ,
1230- 'BlockquoteElementParser ' ,
1231- 'DefinitionListElementParser ' ,
1224+ 'OutlineText\ HeadingElementParser ' ,
1225+ 'OutlineText\ TableElementParser ' ,
1226+ 'OutlineText\ ListElementParser ' ,
1227+ 'OutlineText\ ParagraphElementParser ' ,
1228+ 'OutlineText\ BoxElementParser ' ,
1229+ 'OutlineText\ ReferenceListParser ' ,
1230+ 'OutlineText\ BlockquoteElementParser ' ,
1231+ 'OutlineText\ DefinitionListElementParser ' ,
12321232 ];
12331233
12341234 public static $ onNewLineParserList = [
1235- 'HeadingElementParser ' ,
1236- 'TableElementParser ' ,
1235+ 'OutlineText\ HeadingElementParser ' ,
1236+ 'OutlineText\ TableElementParser ' ,
12371237 ];
12381238
12391239 public static $ onPreBeginLineParserList = [
1240- 'ListElementParser ' ,
1241- 'DefinitionListElementParser ' ,
1242- 'BoxElementParser ' ,
1243- 'ReferenceListParser ' ,
1240+ 'OutlineText\ ListElementParser ' ,
1241+ 'OutlineText\ DefinitionListElementParser ' ,
1242+ 'OutlineText\ BoxElementParser ' ,
1243+ 'OutlineText\ ReferenceListParser ' ,
12441244 ];
12451245
12461246 public static $ onBeginLineParserList = [
1247- 'ListElementParser ' ,
1248- 'DefinitionListElementParser ' ,
1249- 'HeadingElementParser ' ,
1250- 'BoxElementParser ' ,
1251- 'BlockquoteElementParser ' ,
1252- 'HorizontalLineElementParser ' ,
1253- 'FigureElementParser ' ,
1254- 'ReferenceListParser ' ,
1255- 'TableElementParser ' ,
1256- 'ParagraphElementParser ' ,
1247+ 'OutlineText\ ListElementParser ' ,
1248+ 'OutlineText\ DefinitionListElementParser ' ,
1249+ 'OutlineText\ HeadingElementParser ' ,
1250+ 'OutlineText\ BoxElementParser ' ,
1251+ 'OutlineText\ BlockquoteElementParser ' ,
1252+ 'OutlineText\ HorizontalLineElementParser ' ,
1253+ 'OutlineText\ FigureElementParser ' ,
1254+ 'OutlineText\ ReferenceListParser ' ,
1255+ 'OutlineText\ TableElementParser ' ,
1256+ 'OutlineText\ ParagraphElementParser ' ,
12571257 ];
12581258
12591259 public static $ onEmptyLineParserList = [
1260- 'HeadingElementParser ' ,
1261- 'ParagraphElementParser ' ,
1262- 'TableElementParser ' ,
1260+ 'OutlineText\ HeadingElementParser ' ,
1261+ 'OutlineText\ ParagraphElementParser ' ,
1262+ 'OutlineText\ TableElementParser ' ,
12631263 ];
12641264
12651265 // Note:
12661266 // Definitionの子供に list は, あるが,
12671267 // list の子供に Definition はない.
12681268 // listの子供のSectionがdefinitionを持つ
12691269 public static $ onIndentParserList = [
1270- 'DefinitionListElementParser ' , // 順番大事. Definition -> list
1271- 'ListElementParser ' ,
1272- 'SectionElementParser ' ,
1270+ 'OutlineText\ DefinitionListElementParser ' , // 順番大事. Definition -> list
1271+ 'OutlineText\ ListElementParser ' ,
1272+ 'OutlineText\ SectionElementParser ' ,
12731273 ];
12741274
12751275 public static $ onOutdentParserList = [
1276- 'ListElementParser ' , // // 順番大事. List -> Definition
1277- 'DefinitionListElementParser ' ,
1278- 'SectionElementParser ' ,
1276+ 'OutlineText\ ListElementParser ' , // 順番大事. List -> Definition
1277+ 'OutlineText\ DefinitionListElementParser ' ,
1278+ 'OutlineText\ SectionElementParser ' ,
12791279 ];
12801280
12811281 public static $ onEndOfDocumentParserList = [
1282- 'ListElementParser ' ,
1283- 'DefinitionListElementParser ' ,
1284- 'ReferenceListParser ' ,
1282+ 'OutlineText\ ListElementParser ' ,
1283+ 'OutlineText\ DefinitionListElementParser ' ,
1284+ 'OutlineText\ ReferenceListParser ' ,
12851285 ];
12861286
12871287 public static $ inlineElementPatternTable = [
@@ -1312,14 +1312,14 @@ class Parser {
13121312
13131313 // End Parser Configuration ===
13141314
1315- public static $ onResetParserFuncList = [];
1316- public static $ onEmptyLineParserFuncList = [];
1317- public static $ onNewLineParserFuncList = [];
1318- public static $ onPreBeginLineParserFuncList = [];
1319- public static $ onBeginLineParserFuncList = [];
1320- public static $ onIndentParserFuncList = [];
1321- public static $ onOutdentParserFuncList = [];
1322- public static $ onEndOfDocumentParserFuncList = [];
1315+ private static $ onResetParserFuncList = [];
1316+ private static $ onEmptyLineParserFuncList = [];
1317+ private static $ onNewLineParserFuncList = [];
1318+ private static $ onPreBeginLineParserFuncList = [];
1319+ private static $ onBeginLineParserFuncList = [];
1320+ private static $ onIndentParserFuncList = [];
1321+ private static $ onOutdentParserFuncList = [];
1322+ private static $ onEndOfDocumentParserFuncList = [];
13231323
13241324 private static $ blockSeparatorsPattern ;
13251325 private static $ nonVoidHtmlStartTagsPattern ;
@@ -1376,28 +1376,28 @@ public static function Init() {
13761376 static ::$ voidHtmlTagsPattern = '/ ' . static ::$ voidHtmlTagsPattern . '/i ' ;
13771377
13781378 foreach (static ::$ onEmptyLineParserList as $ parser ) {
1379- static ::$ onEmptyLineParserFuncList [] = [' OutlineText \\' . $ parser , 'OnEmptyLine ' ];
1379+ static ::$ onEmptyLineParserFuncList [] = [$ parser , 'OnEmptyLine ' ];
13801380 }
13811381 foreach (static ::$ onNewLineParserList as $ parser ) {
1382- static ::$ onNewLineParserFuncList [] = [' OutlineText \\' . $ parser , 'OnNewLine ' ];
1382+ static ::$ onNewLineParserFuncList [] = [$ parser , 'OnNewLine ' ];
13831383 }
13841384 foreach (static ::$ onPreBeginLineParserList as $ parser ) {
1385- static ::$ onPreBeginLineParserFuncList [] = [' OutlineText \\' . $ parser , 'OnPreBeginLine ' ];
1385+ static ::$ onPreBeginLineParserFuncList [] = [$ parser , 'OnPreBeginLine ' ];
13861386 }
13871387 foreach (static ::$ onBeginLineParserList as $ parser ) {
1388- static ::$ onBeginLineParserFuncList [] = [' OutlineText \\' . $ parser , 'OnBeginLine ' ];
1388+ static ::$ onBeginLineParserFuncList [] = [$ parser , 'OnBeginLine ' ];
13891389 }
13901390 foreach (static ::$ onResetParserList as $ parser ) {
1391- static ::$ onResetParserFuncList [] = [' OutlineText \\' . $ parser , 'OnReset ' ];
1391+ static ::$ onResetParserFuncList [] = [$ parser , 'OnReset ' ];
13921392 }
13931393 foreach (static ::$ onIndentParserList as $ parser ) {
1394- static ::$ onIndentParserFuncList [] = [' OutlineText \\' . $ parser , 'OnIndent ' ];
1394+ static ::$ onIndentParserFuncList [] = [$ parser , 'OnIndent ' ];
13951395 }
13961396 foreach (static ::$ onOutdentParserList as $ parser ) {
1397- static ::$ onOutdentParserFuncList [] = [' OutlineText \\' . $ parser , 'OnOutdent ' ];
1397+ static ::$ onOutdentParserFuncList [] = [$ parser , 'OnOutdent ' ];
13981398 }
13991399 foreach (static ::$ onEndOfDocumentParserList as $ parser ) {
1400- static ::$ onEndOfDocumentParserFuncList [] = [' OutlineText \\' . $ parser , 'OnEndOfDocument ' ];
1400+ static ::$ onEndOfDocumentParserFuncList [] = [$ parser , 'OnEndOfDocument ' ];
14011401 }
14021402
14031403 static ::$ inlienElementsCount = count (static ::$ inlineElementPatternTable );
0 commit comments