sublime icon indicating copy to clipboard operation
sublime copied to clipboard

The word "get" messes up syntax highlighting

Open btholt opened this issue 11 years ago • 3 comments

Try the following in Sublime:

var Test = React.createClass({

  render: function() {
    return (
      <div>
        <h1>
          I want to get out of here.
        </h1>
      </div>
    );
  }

});

Notice it messes up the syntax highlighting of </h1> and </div>. Try taking out the word "get" and it works okay again.

btholt avatar Nov 12 '14 16:11 btholt

So do quite a few other words, including do and with:

screen shot 2014-12-14 at 22 01 02

chrisjhoughton avatar Dec 14 '14 22:12 chrisjhoughton

That doesn't bother me as much; I can deal with that. Using the word get turns off highlighting for the rest of the JSX XML/HTML block.

sublime

btholt avatar Dec 15 '14 06:12 btholt

If you'd like a temporary workaround, this works:

<h1>{"I want to get out of here"}</h1>

Not nice but it works.

chrisjhoughton avatar Dec 15 '14 10:12 chrisjhoughton