jwalton512 / vim-blade

Vim syntax highlighting for Blade templates.
225 stars 37 forks source link

commenting bug #2

Closed chan-grammer closed 10 years ago

chan-grammer commented 10 years ago

There seems to be a bug in the commenting syntax. Comments only works/behaves as expected when both the comment _head_ and _tail_ symbols are adjacent to the _first_ and _last_ lines of a block respectively. AFAIK, comment syntax _should_ be grayed out.

Here's the code:

First scenario

this one behaves as expected _Note_ : the head and tail comment symbols are adjacent to the first and last lines. Comments are _properly grayed out_

{{-- <ul class="errors">
    @foreach($errors->get('first_name') as $message)
        <li>{{ $message }}</li>
    @endforeach
</ul> --}}

This following code is not commented out.

 {{ Form::label('first_name', 'First Name', array('id' => 'first_name')) }}
 {{ Form::text('first_name', 'chan') }}
 {{ Form::submit('Save') }}
 {{ Form::close() }}

Here's the bug:

Second scenario

_Note:_ The bug is commenting syntax is not applied. _They're not grayed out_.

{{-- 
 <ul class="errors">
    @foreach($errors->get('first_name') as $message)
        <li>{{ $message }}</li>
    @endforeach
</ul> 
--}}

 {{ Form::label('first_name', 'First Name', array('id' => 'first_name')) }}
 {{ Form::text('first_name', 'chan') }}
 {{ Form::submit('Save') }}
 {{ Form::close() }}