Sha256: 0d17954efca9151e66c8d77c88a18fa77eeece52c25dc0f187a700fc5e0e173d
Contents?: true
Size: 557 Bytes
Versions: 5
Compression:
Stored size: 557 Bytes
Contents
const parseSync = require("../parser/parseSync"); const parse = (text, _parsers, _opts) => { return parseSync("haml", text); }; 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
prettier-1.5.3 | src/haml/parser.js |
prettier-1.5.2 | src/haml/parser.js |
prettier-1.5.1 | src/haml/parser.js |
prettier-1.5.0 | src/haml/parser.js |
prettier-1.4.0 | src/haml/parser.js |