src/less/parse.js
function getInterpolatedVariable() {
  const type = NodeType.InterpolatedVariableType;
  const token = tokens[pos];
  const line = token.ln;
  const column = token.col;
  const content = [];

  // Skip `@{`:
  pos += 2;

  content.push(getIdent());

  const end = getLastPosition(content, line, column, 1);

  // Skip `}`:
  pos++;

  return newNode(type, content, line, column, end);
}
function getInterpolatedVariable() {
  const type = NodeType.InterpolatedVariableType;
  const token = tokens[pos];
  const line = token.ln;
  const column = token.col;
  const content = [];

  // Skip `@{`:
  pos += 2;

  content.push(getIdent());

  const end = getLastPosition(content, line, column, 1);

  // Skip `}`:
  pos++;

  return newNode(type, content, line, column, end);
}
function getInterpolatedVariable ( ) { const type = NodeType . InterpolatedVariableType ; const token = tokens [ pos ] ; const line = token . ln ; const column = token . col ; const content = [ ] ; // Skip `@{`: pos += 2 ; content . push ( getIdent ( ) ) ; const end = getLastPosition ( content , line , column , 1 ) ; // Skip `}`: pos ++ ; return newNode ( type , content , line , column , end ) ; }
Get node with LESS interpolated variable
@returns {Array} `['interpolatedVariable', x]`
Get node with LESS interpolated variable