Skip to content

Broken resolve for @custom-at-rule #106

@alexander-akait

Description

@alexander-akait
  • Node Version: 10.2.1
  • NPM Version: 6.1.0
  • postcss-less Version: 2.0.0

If you have a large amount of code to share which demonstrates the problem you're experiencing, please provide a link to your
repository rather than pasting code. Otherwise, please paste relevant short snippets below.

LESS

@custom-selector :--camelCase .my-css-selector;

JavaScript

import postCssLess from 'postcss-less';
const less = `
@custom-selector :--camelCase .my-css-selector;
`;
const root = postCssLess.parse(less);

Expected Behavior

Should be resolved as at-rule.

Actual Behavior

Resolved as variable

How can we reproduce the behavior?

Example above.

Maybe we should adopt this https://github.com/less/less.js/blob/e3c13121dfdca48ba8fe26335cc12dd3f7948676/lib/less/parser/parser.js for better detecting.

/cc @e-cloud @davidyorr looks like regression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions