# Weird bug with Esc, string, and underscore? [closed]

There seems to be a bug with esc key, strings, and underscores.

For instance, see the following code:

a = f["1_2"];


If an esc character is typed anywhere between the start of the line and the letter f, the first quotation mark is no longer recognized.

It appears that this occurs only when:

• the string contains at least one underscore and at least one number (can have other characters too)
• the string needs to have some sort of brackets (parentheses, curly braces, etc.) around it.

Trying to evaluate the line when the phenomenon occurs leads to an error.

Typing anything other than esc before the second quotation mark fixes the line.

What is causing this?

## closed as off-topic by MarcoB, m_goldberg, C. E., corey979, FeyreFeb 6 '17 at 11:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "The question is out of scope for this site. The answer to this question requires either advice from Wolfram support or the services of a professional consultant." – MarcoB, m_goldberg, C. E., corey979, Feyre
If this question can be reworded to fit the rules in the help center, please edit the question.

• I've seen similar kinds of problems. See, for instance, here. There, it's a problem with superscripts. – march Jul 25 '16 at 22:20
• Also, here and here. – march Jul 25 '16 at 22:37
• Also, double esc before a, then double backspace and highlighting is broken. – Kuba Feb 6 '17 at 8:19
• Probably related: undo after copying a string inside a string – Kuba Feb 6 '17 at 8:37