Sha256: 4531bfe858b40c7f96e93d803a2d5c0050196e36baeb7dd2960a06272d5ef3bf

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

const embed = require("./haml/embed");
const parse = require("./haml/parse");
const print = require("./haml/print");

const pragmaPattern = /^\s*-#\s*@(prettier|format)/;
const hasPragma = text => pragmaPattern.test(text);

// These functions are just placeholders until we can actually perform this
// properly. The functions are necessary otherwise the format with cursor
// functions break.
const locStart = _node => 0;
const locEnd = _node => 0;

module.exports = {
  embed,
  hasPragma,
  locStart,
  locEnd,
  parse,
  print
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prettier-0.18.0 src/haml.js
prettier-0.17.0 src/haml.js
prettier-0.16.0 src/haml.js