You are here

private function HamlParser::parseHamlComment in Sassy 7

* Parse a Haml comment. * If the comment is an empty comment eat all child lines. *

Parameters

array line to parse:

1 call to HamlParser::parseHamlComment()
HamlParser::parseLine in phamlp/haml/HamlParser.php
* Parse a line of Haml into a HamlNode for the document tree *

File

phamlp/haml/HamlParser.php, line 1156

Class

HamlParser
HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml

Code

private function parseHamlComment($line) {
  if (!$this
    ->hasContent($line)) {
    while ($this
      ->hasChild($line, true)) {
      array_shift($this->source);
      $this->line++;
    }
  }
}