davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Please add support for block code element #50

Closed mathiasschopmans closed 9 years ago

mathiasschopmans commented 9 years ago

Jade recently added support for block code elements

I tried my best to write a pull-request, but my implementation sucks. Haha. Would love if someone else can have a look. :)

screenshot 2015-07-14 22 28 02
//- Here's my testcode which looks kind of incorrect with the current highlighter:
var page = "404"
var title = "404 · Page not found"

var peeps = ["Mathias",
  "David", "Github"];

var msg = peeps.map(function(name) {
  return "Hi " + name
}).join(", ");

I guess there's just a small change in unbuffered_code's begin / end needed

Thanks for your investigations!

mathiasschopmans commented 9 years ago

Yay! Thank you. :+1: