Permalink
Browse files

plessc use new parser class for debug output

  • Loading branch information...
1 parent e0b199e commit 34be6fa02334fcdd9169a67841af11600f20527d @leafo committed Jun 7, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 plessc
View
12 plessc
@@ -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);
}
-
?>

0 comments on commit 34be6fa

Please sign in to comment.