Index: trunk/extensions/VisualEditor/modules/parser/pegTokenizer.pegjs.txt |
— | — | @@ -1019,7 +1019,7 @@ |
1020 | 1020 | } |
1021 | 1021 | |
1022 | 1022 | table_firstrow |
1023 | | - = td:(table_data / table_header)+ { |
| 1023 | + = td:(table_data / table_heading)+ { |
1024 | 1024 | //dp('firstrow: ' + pp(td)); |
1025 | 1025 | return [{ type: 'TAG', name: 'tr' }] |
1026 | 1026 | .concat(td, [{type: 'ENDTAG', name: 'tr'}]); |
— | — | @@ -1028,7 +1028,7 @@ |
1029 | 1029 | table_row |
1030 | 1030 | = //& { dp("table row enter"); return true; } |
1031 | 1031 | n:newlineToken |
1032 | | - "|-" thtd_attribs? space* td:(table_data / table_header)* { |
| 1032 | + "|-" thtd_attribs? space* td:(table_data / table_heading)* { |
1033 | 1033 | return n.concat([{type: 'TAG', name: 'tr'}] |
1034 | 1034 | , td, [{type: 'ENDTAG', name: 'tr'}]); |
1035 | 1035 | } |
— | — | @@ -1052,7 +1052,7 @@ |
1053 | 1053 | , td, [{type: 'ENDTAG', name: 'td'}] ); |
1054 | 1054 | } |
1055 | 1055 | |
1056 | | -table_header |
| 1056 | +table_heading |
1057 | 1057 | = n:("!!" { return [] } / nl:newlineToken "!" { return nl }) |
1058 | 1058 | a:(as:generic_attribute+ "|" !"|" { return as } )? |
1059 | 1059 | c:inline { |