noteState function

Function noteState(
  1. Lexer lexer
)

Implementation

Function noteState(Lexer lexer) {
  lexer.take(["*", " "]);
  lexer.ignore();

  String chr = lexer.next();

  while (!isLineTerminator(chr)) {
    chr = lexer.next();
  }

  lexer.rewind();
  lexer.emit(TokenType.Note);

  return idleState;
}