Skip to content

Enable interpolation in LESS#3164

Closed
marcelgerber wants to merge 1 commit intocodemirror:masterfrom
marcelgerber:less-interpolation
Closed

Enable interpolation in LESS#3164
marcelgerber wants to merge 1 commit intocodemirror:masterfrom
marcelgerber:less-interpolation

Conversation

@marcelgerber
Copy link
Copy Markdown
Contributor

LESS supports interpolation as well (using @ as the special char, like in @{dark-bg}).

It would be great if interpolation inside a string would be highlighted as well.

marijnh added a commit that referenced this pull request Mar 31, 2015
@marijnh
Copy link
Copy Markdown
Member

marijnh commented Mar 31, 2015

Merged as 12dbe83 and added a test and some changes to make it actually work in 26ec5f3

@marijnh marijnh closed this Mar 31, 2015
@marcelgerber marcelgerber deleted the less-interpolation branch March 31, 2015 08:11
@marcelgerber
Copy link
Copy Markdown
Contributor Author

Would you be interested in adding support (that is, highlighting) for interpolation inside strings?
I tried, but I failed. I tried to reuse the code in the SASS mode, but they are too different (the SASS mode doesn't have states) and I don't know the tokenizer structure of CM well enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants