render('../common/inc-table-filter');?>
$line ):?>
- ';
continue;
}
// may be a comment line
if( '#' === $line{0} ){
// may be able to parse out references
if( isset($line{1}) ){
$symbol = $line{1};
$line = substr($line,2);
if( ':' === $symbol ){
echo '#:',preg_replace('/\\S+:\d+/', '\\0', $params->escape($line) ),'';
}
// parse out flags and formatting directives
else if( ',' === $symbol ){
echo '#,',preg_replace('/[-a-z]+/', '\\0', $params->escape($line) ),'';
}
// else treat as normal comment even if empty
else {
echo '';
}
}
// else probably an empty comment
else {
echo '';
}
continue;
}
// grab keyword if there is one before quoted string
if( preg_match('/^(msg[_a-z0-9\\[\\]]+)(\s+)/', $line, $r ) ){
echo '',$params->escape($r[1]),'',$params->escape($r[2]),'';
$line = substr( $line, strlen($r[0]) );
}
// remainder of line (or whole line) should be a quoted string
if( preg_match('/^"(.*)"\s*$/', $line, $r ) ){
echo '"',$params->escape($r[1]),'"';
continue;
}
// else print whatever junk is left of line
echo '',$params->escape($line),'';
?>