Allow // comment in documentation

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@986 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-06-18 19:23:25 +00:00
parent 1d4a3c700b
commit 50b09c7673
@@ -157,6 +157,10 @@ function autoformat__handle(&$i, $prefix, $first, $fail_same = false) {
$text .= $line . "\n";
$state = '';
// Comment
} elseif (preg_match("@^//@", $line)) {
// ignore
// Just text
} else if ($fail_same && $autoformat__lines[$i-1]{$len-1} != ' ' && $text != '') {
// consecutive * and # lines are different items