Skip to content
New issue

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

Accurate file and line number when throwing undefined mixin or unknown block operation error. #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yansern
Copy link

@yansern yansern commented Dec 27, 2013

When an imported less file is calling an undefined mixin, LessPHP is unable to throw the correct file and line number. This fix adds a reference to the parser and the count position of the block so we can access the block's parser to throw the error while passing in the correct count position.

00000120

@pafnuty
Copy link

pafnuty commented Dec 30, 2013

Tnx!

pafnuty added a commit to info-expert-projects/LessForBitrix that referenced this pull request Dec 30, 2013
- Обновил класс компилятора, в т.ч. включил коммит:
leafo/lessphp#524
- обновил пути по умолчанию для подхвата файлов. Сделано для удобства
использования атолодера скриптов и стилей (об нём расскажу в следующем
году)
- обновил блок копирайтов и статистики (поставил воскл знак, чтобы
минимизаторы всякие не рубили этот блок)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants