Sha256: f0b7d4b489ca9964288eaede65c77e10af6ef787897719733d70385a61fcc1f6
Contents?: true
Size: 1.99 KB
Versions: 4
Compression:
Stored size: 1.99 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984302.956212:@value"‘{I" class:EFI"ProcessedAsset; FI"logical_path; FI"locomotive/liquid_mode.js; TI" pathname; FI"a/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/liquid_mode.js; TI"content_type; FI"application/javascript; FI" mtime; FI"2013-01-18T09:21:51+01:00; FI"length; FiKI"digest; F"%ad2b79cd54010420eec24d8b39e58ce2I"source; FI"K/* This overlay provides a 'liquid' mode to the excellent CodeMirror editor (http://codemirror.net/). Add something like this to your CSS: .cm-liquid-tag { color: #32273f; background: #ead9ff; } .cm-liquid-variable { color: #29739b background: #c2e0f0; } https://gist.github.com/1356686 */ CodeMirror.defineMode("liquid", function(config, parserConfig) { var liquidOverlay = { token: function(stream, state) { // Variables. if (stream.match("{{")) { while ((ch = stream.next()) != null) if (ch == "}" && stream.next() == "}") break; return "liquid-variable"; } // Tags. if(stream.match("{%")) { while ((ch = stream.next()) != null) if (ch == "%" && stream.next() == "}") break; return "liquid-tag"; } while (stream.next() != null && !stream.match("{{", false) && !stream.match("{%", false)) {} return null; } }; return CodeMirror.overlayParser(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), liquidOverlay); }); ; FI"dependency_digest; F"%ef17befd8f39868ec7dc39bbee3e7d98I"required_paths; F[I"a/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/liquid_mode.js; TI"dependency_paths; F[{I" path; FI"a/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/liquid_mode.js; TI" mtime; FI"2013-01-18T09:21:51+01:00; FI"digest; F"%0cbff386213fef99e5a134da8df6e5aeI" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
4 entries across 4 versions & 1 rubygems