Sha256: 724b56f7f7c046deb6f649d97df0f581f115d13a48b8dca3662c0c56d48f110b
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
const parseSync = require("../parser/parseSync"); const parse = (text, _parsers, opts) => { return parseSync("haml", text, opts); }; 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 = { parse, astFormat: "haml", hasPragma, locStart, locEnd };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prettier-1.5.5 | src/haml/parser.js |
prettier-1.5.4 | src/haml/parser.js |