Skip to content

Commit

Permalink
Lines starting with # are treated as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
moisesbr-dw committed Jun 12, 2017
1 parent e6fc11f commit e21e38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syntax.php
Expand Up @@ -19,7 +19,8 @@
* link1: link as URL or wiki page (a:b:c) to the definition
* link2: link as URL or wiki page (a:b:c) to alternative definition
*
* If the first link points to the current page, the second link is used
* If the first link points to the current page, the second link is used.
* Lines starting with # are treated as comments.
*
* @license GPL
* @author Marc Wäckerlin <marc@waeckerlin.org>
Expand Down Expand Up @@ -47,6 +48,7 @@ function syntax_plugin_explain() {
$i = (trim(substr($line, 0, 1)) !== '');
$line = trim($line);
if (empty($line)) continue;
if (substr($line, 0, 1) === '#') continue;
$parts = explode("\t", $line);
if ($i) $parts[0] = utf8_strtolower($parts[0]);
$this->map[$parts[0]] = array('desc' => $parts[1],
Expand Down

0 comments on commit e21e38e

Please sign in to comment.