We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro:
test('Sass selector', '.#{$classname}', (t, tree) => { const node = tree.nodes[0].nodes[0]; t.deepEqual(node.type, "class"); // Ok t.deepEqual(node.value, "#{$classname}"); // Ok t.deepEqual(node.source.start.column, 1); // Fail. Received: 5 t.deepEqual(node.source.end.column, 14); // Fail. Received: 18 t.deepEqual(node.sourceIndex, 0); // Fail. Received: 4 });
Compare with this selector that has the same length:
test('Normal selector', '.XXXclassnameX', (t, tree) => { const node = tree.nodes[0].nodes[0]; t.deepEqual(node.type, "class"); // Ok t.deepEqual(node.value, "XXXclassnameX"); // Ok t.deepEqual(node.source.start.column, 1); // Ok t.deepEqual(node.source.end.column, 14); // Ok t.deepEqual(node.sourceIndex, 0); // Ok });
I tried to look at the parser code to figure out what's wrong but I didn't manage to figure this one out.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Repro:
Compare with this selector that has the same length:
I tried to look at the parser code to figure out what's wrong but I didn't manage to figure this one out.
The text was updated successfully, but these errors were encountered: