Git Product home page Git Product logo

mojo.vim's People

Contributors

mbudde avatar yko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mojo.vim's Issues

__DATA__ not highlighted

I have put these lines in my .vimrc

let mojo_highlight_data = 1
let mojo_disable_html = 1

When I load vim with file hello with file contents like this, the section below DATA isn't highlighted.

!/usr/bin/env perl

use Mojolicious::Lite;

get '/:fname/:lname' => sub {
shift->render('hello');
};

app->start;

DATA

@@ hello.html.ep
<!doctype html>
<title>Placeholders</title>
Hello <%= $fname %> <%= $lname %>

minor typos

L16 and L20 of MojoliciousTemplate.vim uses MojoTemplate.vim instead of MojoliciousTemplate.vim

inside perl block, html is highlighted as perl

As mentioned in #7 by rshadow:

% if(1) {
       <tr class="<%= join ' ', @class %>" >
              <td>  
% }

Html code between {} is highlited as it was perl.
To me it looks like in epl.vim

syn region PerlInside keepend start=+^\s*%=\{0,2}+hs=s end=+$+ contains=MojoSingleStart,@Perl

the keepend is ignored. Maybe error in vim?

Curly brackets seem to mess with syntax highlight

Syntax highlight is working fine util I enter a line like this.
% for $line (@$rows) {

It looks good until I insert the opening curly bracket, everything after is strangely highlighted.

With Curly bracket.
2015-05-20 13_55_33-11744 _work_webapps_mojo-webapp

Without Curly bracket.
2015-05-20 13_56_59-11744 _work_webapps_mojo-webapp

Receving warnings in html.ep that is provided in layout/default.ep

I am receiving warnings about missing body, html and other tags in a template where they are provided in the default layout. See screenshots below.

image

I have confirmed that this is coming from mojo.vim by uninstalling the HTML language server and mojo.vim. The problem recurs when I install mojo.vim and open the template/index.html.ep.

Thanks in advance for your help!

lbe

Adding .vimrc configuration snippets

Plug 'tomtom/tlib_vim'
Plug 'garbas/vim-snipmate'
Plug 'honza/vim-snippets'
Plug 'yko/mojo.vim'
let mojo_highlight_data = 1
let g:snipMate = { 'snippet_version' : 1 }

Code reuse

Move ep syntax to separate file, redesign epl and MojoTempalate syntax to inclide ep.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.