- Timestamp:
- May 6, 2008, 5:08:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine.c
r137 r138 1038 1038 if (AtChar<C,'%'>(cur())) 1039 1039 Parse_PEReference(); 1040 else if (at_PI_Start<C>(cur())) { 1041 Parse_PI(); 1042 } 1043 else if (at_Comment_Start<C>(cur())) { 1044 Parse_Comment(); 1045 } 1040 1046 else if (AtChar<C,'<'>(cur())){ 1041 1047 Advance(1); 1042 1043 if (AtChar<C,'?'>(cur())){ 1044 if (at_xml<C>(cur())) 1045 Syntax_Error(NT_intSubset); 1046 else 1047 Parse_PI(); 1048 } 1049 else if(AtChar<C,'!'>(cur())){ 1048 if(AtChar<C,'!'>(cur())){ 1050 1049 Advance(1); 1051 if(at_DoubleHyphen<C>(cur())) 1052 Parse_Comment(); 1053 else if(at_ELEMENT<C>(cur())) 1050 if (at_ELEMENT<C>(cur())) 1054 1051 Parse_Elementdecl(); 1055 else if (at_ATTLIST<C>(cur()))1052 else if (at_ATTLIST<C>(cur())) 1056 1053 Parse_AttlistDecl(); 1057 else if (at_ENTITY<C>(cur()))1054 else if (at_ENTITY<C>(cur())) 1058 1055 Parse_Entitydecl(); 1059 else if (at_NOTATION<C>(cur()))1056 else if (at_NOTATION<C>(cur())) 1060 1057 Parse_Notationdecl(); 1061 else {1058 else { 1062 1059 Syntax_Error(NT_markupdecl); 1063 1060 } … … 1782 1779 else if (AtChar<C,'%'>(cur())) 1783 1780 Parse_PEReference(); 1781 else if (at_PI_Start<C>(cur())) { 1782 Parse_PI(); 1783 } 1784 else if (at_Comment_Start<C>(cur())) { 1785 Parse_Comment(); 1786 } 1784 1787 else if (AtChar<C,'<'>(cur())){ 1785 1788 Advance(1); 1786 1789 1787 if (AtChar<C,'?'>(cur())){ 1788 Parse_PI(); 1789 } 1790 else if(AtChar<C,'!'>(cur())){ 1790 if(AtChar<C,'!'>(cur())){ 1791 1791 Advance(1); 1792 if(at_DoubleHyphen<C>(cur())) 1793 Parse_Comment(); 1794 else if(at_ELEMENT<C>(cur())) 1792 if(at_ELEMENT<C>(cur())) 1795 1793 Parse_Elementdecl(); 1796 1794 else if(at_ATTLIST<C>(cur()))
Note: See TracChangeset
for help on using the changeset viewer.