Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The word "get" messes up syntax highlighting #10

Open
btholt opened this issue Nov 12, 2014 · 3 comments
Open

The word "get" messes up syntax highlighting #10

btholt opened this issue Nov 12, 2014 · 3 comments

Comments

@btholt
Copy link

btholt commented Nov 12, 2014

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
Copy link

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

screen shot 2014-12-14 at 22 01 02

@btholt
Copy link
Author

btholt commented Dec 15, 2014

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
Copy link

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

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

Not nice but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants