MCPcopy Index your code
hub / github.com/prettier/prettier / parseLess

Function parseLess

src/language-css/parser-postcss.js:428–436  ·  view source on GitHub ↗
(text, options = {})

Source from the content-addressed store, hash-verified

426}
427
428function parseLess(text, options = {}) {
429 return parseWithParser(
430 // Workaround for https://github.com/shellscape/postcss-less/issues/145
431 // See comments for `replaceQuotesInInlineComments` in `loc.js`.
432 (text) => postcssLess.parse(replaceQuotesInInlineComments(text)),
433 text,
434 options,
435 );
436}
437
438function parseScss(text, options = {}) {
439 return parseWithParser(postcssScssParse, text, options);

Callers

nothing calls this directly

Calls 2

parseWithParserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…