vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Syntastic is unable to recognize HTML templates and throws syntax errors #240

Closed distracteddev closed 10 years ago

distracteddev commented 12 years ago

If the following is found in the head element of a HTML page, Syntastic will complain about the html tags not being allowed within the tag. Can we some how modify the HTML checker to either detect the scripts type attribute and simply not parse the following. Or, if possible, parses it using a handlebars syntax checker? (if one exists).

Code placed in comment below since code-formatting was being fussy.

distracteddev commented 12 years ago
<script type="text/x-handlebars" data-template-name="posts">
    {{#each content}}
    <div class="row">
        <section class="post columns eight centered mock">
            <section class="post-header">
                <h2>{{title}}</h2>
                <h5>{{sub_title}}</h5>
                {{#each tags}}
                    <p>{{this}}</p>
                {{/each}}
                <p class="post-body">{{body}}</p>
            </section>
        </section>
    </div>
    {{/each}}
</script>
achur commented 12 years ago

+1 also have needed to turn off syntastic for html due to this

wizonesolutions commented 11 years ago

+1 Syntastic complains about