Added grammar for text lines.