Enhance mismatched block mustache errors #63

Merged
merged 1 commit into from Apr 6, 2013

Projects

None yet

1 participant

Owner

Previously we only highlighted the close mustache in the case of a
mismatch, and we did not provide a quick fix (which users probably
expect if they are used to the XML/HTML editing capabilities).

Move the mismatch detection out of the parser and into an Annotation
object (an "Inspection") and add quick fixes for making the names
match.

Also smarten up the check to cover complex ids. Previously we were only
ensuring that "foo" matched in "{{#foo.bar}}{{/foo.baz}}" and hence
missing errors in cases like these.

@dmarcotte Enhance mismatched block 'stache errors
Previously we only highlighted the close mustache in the case of a
mismatch, and we did not provide a quick fix (which users probably
expect if they are used to the XML/HTML editing capabilities).

Move the mismatch detection out of the parser and into an Annotation
object (and "Inspection") and add quick fixes for making the names
match.

Also smarten up the check to cover complex ids.  Previously we were only
ensuring that "foo" matched in "{{#foo.bar}}{{/foo.baz}}" and hence
missing errors in cases like these.
31b2989
@dmarcotte dmarcotte merged commit 50ff858 into master Apr 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment