Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

plessc use new parser class for debug output

  • Loading branch information...
commit 34be6fa02334fcdd9169a67841af11600f20527d 1 parent e0b199e
leaf authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 plessc
12 plessc
View
@@ -191,15 +191,16 @@ function dumpValue($node, $depth = 0) {
}
try {
- $l = make_less($fname);
+ $less = make_less($fname);
if (has("T", "X")) {
- $t = $l->parseTree();
+ $parser = new lessc_parser($less, $fname);
+ $tree = $parser->parse(file_get_contents($fname));
if (has("X"))
- $out = print_r($t, 1);
+ $out = print_r($tree, 1);
else
- $out = dumpValue($t)."\n";
+ $out = dumpValue($tree)."\n";
} else {
- $out = $l->parse();
+ $out = $less->parse();
}
if (!$fout = array_shift($argv)) {
@@ -213,5 +214,4 @@ try {
exit(1);
}
-
?>
Please sign in to comment.
Something went wrong with that request. Please try again.