vmware-archive / salt-vim

Vim files for editing Salt files
Other
248 stars 73 forks source link

mako python code upsets syntax coloring #46

Open Mrten opened 8 years ago

Mrten commented 8 years ago

I realize you maybe not want to support mako in slses but if you still want to here is a short snippet of code that upsets the syntax coloring:

<%
out.append("{{{{ record('{0}', 'SSHFP', '{1}') }}}}".format(host,line))

# the following line starts red
out.append("{{{{ record('piro', 'SSHFP', '{0}') }}}}".format(line))

%>
${"\n".join(out)}

Looks like this:

screen shot 2016-11-09 at 09 nov 12 33 10

This is mako code that generates jinja templates, hence the amount of braces.