Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems With Comments Using Neovim Setup #24

Closed
hzerbini opened this issue Aug 17, 2023 · 6 comments
Closed

Problems With Comments Using Neovim Setup #24

hzerbini opened this issue Aug 17, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@hzerbini
Copy link

I've set it up using the discussion here #19, and I'm facing this problem:

image

Do you think this problem is about the parser, or i messed up something in my configuration file?
My configuration: https://github.com/hzerbini/.dotfiles

And I really appreciate the effort of you writing this parser, it was something that i really missed.

Thanks for your hard work on this.

@EmranMR
Copy link
Owner

EmranMR commented Aug 17, 2023

Hi @hzerbini thank you for your kind words! Can you drop the code as a "code block" from under the </li> all the way and including the last @if() statement? I will then copy and run it through the tree-sitter-cli and let you know if it is the issue with the parser or something else! 😊

@hzerbini
Copy link
Author

hzerbini commented Aug 18, 2023

Sure,

@section('content')
    <div class="os-tabs-w mx-4">
        <div class="os-tabs-controls">
            <ul class="nav nav-tabs upper">
                <li class="nav-item">
                    <a aria-expanded="false"
                       class="nav-link active"
                       data-toggle="tab"
                       href="#tab_purchase_quotation_freight_service"> Serviços de frete internacional
                    </a>
                </li>
                <li class="nav-item">
                    <a aria-expanded="false"
                       class="nav-link"
                       data-toggle="tab"
                       href="#tab_purchase_quotation_additional_services"> Serviços adicionais
                    </a>
                </li>
                <li class="nav-item">
                    <a aria-expanded="false"
                       class="nav-link"
                       data-toggle="tab"
                       href="#tab_purchase_quotation_extra_costs"> Despesas Administrativas
                    </a>
                </li>
                {{--<li class="nav-item">--}}
                    {{--<a aria-expanded="false"--}}
                       {{--class="nav-link"--}}
                       {{--data-toggle="tab"--}}
                       {{--href="#tab_purchase_quotation_attachment"> Anexos--}}
                    {{--</a>--}}
                {{--</li>--}}
            </ul>
        </div>
        <div class="tab-content">
            @include('processes.partials.tab_purchase_quotation_freight_service')
            @include('processes.partials.tab_purchase_quotation_additional_services')
            @include('processes.partials.tab_purchase_quotation_extra_costs')
            {{--@include('processes.partials.tab_purchase_quotation_attachment')--}}
        </div>
    </div>

    @if( $process->process_status_id == \App\Models\ProcessStatus::STATUS_EM_ANDAMENTO)
        <div class="form-buttons-w" id="form-btns">
            <input type="hidden" id="tab-name" name="tab-name">
            @if( isset($process) && $process->process_step_id == \App\Models\ProcessStep::STEP_PURCHASE_QUOTATION  )
                <button class="btn btn-warning btn-finalize" data-id="{{ $process->id }}" data-step="{{ $process->process_step_id }}">Finalizar Etapa</button>
            @endif
            <div class="pull-right">
                <a class="btn btn-secondary" href="{{ route('processes.index') }}">Fechar</a>
            </div>
        </div>
    @endif

@endsection

@yaegassy
Copy link
Contributor

In the meantime, it'll be a work-around, but please try to put a space in the blade comment.

Before:

{{--@include('processes.partials.tab_purchase_quotation_attachment')--}}

After:

{{-- @include('processes.partials.tab_purchase_quotation_attachment') --}}

@EmranMR EmranMR added the bug Something isn't working label Aug 18, 2023
@EmranMR
Copy link
Owner

EmranMR commented Aug 18, 2023

I can confirm it's an issue with the tree-sitter-blade. I will keep you posted once I figure out the bug 🐞 meanwhile I would just add a space as @yaegassy suggested.

The issue seem to be specifically related to the closing --}} and in all fairness the space shouldn't be compulsory and it worked for the other comments!

@EmranMR
Copy link
Owner

EmranMR commented Aug 18, 2023

Hi @hzerbini that is the bug 🐞 fixed, please use the v0.3.2.
You can now comment with or without space on either sides. 😊

@hzerbini
Copy link
Author

@EmranMR and @yaegassy i appreciate very much. Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants