1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
4 class WikiLanguage extends HyperLanguage {
5 public function __construct() {
7 parent::NAME => 'Wiki',
9 $this->setExtensions(array('wiki'));
10 $this->setCaseInsensitive(false);
11 $this->addStates(array(
17 'keyword' => array('operator'),
21 $this->addRules(array(
22 'bold' => "/'''(?:\\\\'|.)*?'''/s",
23 'macro' => "/\[\[.*\]\]/s",
24 'link' => "/\[[a-z]+:.*\]/Us",
25 'replink' => "/\{[^}]+\}/Us",
30 $this->addMappings(array(