#indnet
例: ^ #plugin(){{ ^ arg ^ arg ^ }} は、 ^#plugin(){{ ^ arg ^ arg ^}} と等価。
#code(diff){{ + $indent_format = 0; }}
#code(diff){{ function parse(& $lines) { + global $indent_format; $this->last = & $this; $matches = array(); + $indent = ""; }}
#code(diff){{{{ while (! empty($lines)) { $line = array_shift($lines); + // Indent extension + if ($indent_format) + { + preg_match('/^(\s*)(.*)$/', $line, $matches); + $indent = strlen($matches[1]); + $line = $matches[2] ; + } + + if (rtrim($line) == '#indent') { + $indent_format = 1; + continue; + } + if (rtrim($line) == '#noindent') { + $indent_format = 0; + continue; + } // Escape comments if (substr($line, 0, 2) == '//') continue; }}}}