thehogfather / brackets-code-folding

Code folding extension for brackets IDE
134 stars 42 forks source link

Tag range finder should ignore comments, as in brace range finder #22

Closed simonrob closed 10 years ago

simonrob commented 10 years ago

At the moment, html code folding doesn't ignore tags in comments (e.g., <!-- <body> -->), which messes up code folding, causing tag mismatches. For a simple example, see the Brackets getting started example that comes with the app.

This isn't the case with files that use the brace range finder, so a simple solution would be to just ignore comments, like is done in that approach.

I'll submit a pull request if I get chance to look at the code in more detail.

thehogfather commented 10 years ago

Good shout. Should be fixed now. Probably needs testing and then I'll push it to the registry in a few days.