sublime
sublime copied to clipboard
The word "get" messes up syntax highlighting
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.
So do quite a few other words, including do and with:

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.

If you'd like a temporary workaround, this works:
<h1>{"I want to get out of here"}</h1>
Not nice but it works.