Changeset 30324 for documentation/trunk/wiki
- Timestamp:
- 2015-11-25T16:50:29+13:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/wiki/plugins/simpletabs/syntax.php
r30320 r30324 54 54 $PARSER_MODES['paragraphs']); 55 55 // Init 56 $this->debug = false;56 $this->debug = true; //false; 57 57 $this->divide_edit_section = false; 58 58 $this->tab_area_counter = 0; … … 134 134 $this->Lexer->addPattern('</TAB>', 'plugin_simpletabs'); 135 135 // Hide comments always (sometimes used as separator) 136 $this->Lexer->addPattern(' ^<!--.*?-->(?=\n)', 'plugin_simpletabs');136 $this->Lexer->addPattern('<!--.*?-->', 'plugin_simpletabs'); 137 137 // Special things inside the content we want to manually handle. 138 138 $this->Lexer->addPattern( '^[ \t]*={2,6}\s?[^\n]+={2,6}[ \t]*(?=\n)', 'plugin_simpletabs'); … … 232 232 'bytepos' => $pos + strlen($match))); 233 233 } 234 if (preg_match('/^<!--(.*)?-->(?=\n)/s', $match, $matches)) 234 // note: we only handle comments inside tabbed area but outside of tabs 235 if (empty($this->current_tab) && preg_match('/<!--(.*)?-->/s', $match, $matches)) 235 236 { 236 237 $this->_debugPrint("Handler=>comment: " . htmlspecialchars($matches[1])); … … 242 243 if (preg_match('/(={2,6})\s*(.+?)\s*={2,6}/', $match, $matches)) 243 244 { 245 $this->_debugPrint("Handler=>header: " . htmlspecialchars($match)); 244 246 $params = array(); 245 247 $params['action'] = 'heading'; … … 264 266 } 265 267 266 return array(); 268 $this->_debugPrint("Unhandled: " . htmlspecialchars($match)); 269 return array(DOKU_LEXER_UNMATCHED, $match); 267 270 } 268 271
Note:
See TracChangeset
for help on using the changeset viewer.