If you parse with YAML.pm you get full resolution line and column numbers. So yes I think it's very doable, although we don't include YAML.pm in our dependencies so it would need to be in a plugin.
We would, however, need to do a more thorough abstraction of the Perl-specific parts of the syntax checker from the generic parts. That probably means doing more parsing and analysis in the background task that wraps the perl -c command line call, and inventing some kind of more abstract "problem" object that full describes that the front-end should display. This is a good idea in general, because with a single common problem object we can write adapters for critic and other tools, run them all in parallel if possible and merge all the problems back onto a single editor window. So we could run multiple parallel checking routines and show all the results together. Adam K On 22 August 2011 15:51, Gabor Szabo <szab...@gmail.com> wrote: > I was just editing a YAML file with the syntax checker open. > It was blank. > That's when I thought we could implement a syntax checker by > trying to parse the file using YAML::Load > > Same with JSON files. > > > What do you think? > > > Gabor > _______________________________________________ > Padre-dev mailing list > Padre-dev@perlide.org > http://mail.perlide.org/mailman/listinfo/padre-dev > _______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev