yungsters / sublime

Random files I use with Sublime Text.
18 stars 26 forks source link

The word "get" messes up syntax highlighting #10

Open btholt opened 9 years ago

btholt commented 9 years ago

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.

chrisjhoughton commented 9 years ago

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

screen shot 2014-12-14 at 22 01 02

btholt commented 9 years ago

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

chrisjhoughton commented 9 years ago

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

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

Not nice but it works.