{"action":"closed","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/5243","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/5243/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/5243/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/5243/events","html_url":"https://github.com/codemirror/CodeMirror/issues/5243","id":294910590,"number":5243,"title":"Syntax highlighting with static properties in JavaScript/JSX","user":{"login":"eveningkid","id":7188494,"avatar_url":"https://avatars0.githubusercontent.com/u/7188494?v=4","gravatar_id":"","url":"https://api.github.com/users/eveningkid","html_url":"https://github.com/eveningkid","followers_url":"https://api.github.com/users/eveningkid/followers","following_url":"https://api.github.com/users/eveningkid/following{/other_user}","gists_url":"https://api.github.com/users/eveningkid/gists{/gist_id}","starred_url":"https://api.github.com/users/eveningkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eveningkid/subscriptions","organizations_url":"https://api.github.com/users/eveningkid/orgs","repos_url":"https://api.github.com/users/eveningkid/repos","events_url":"https://api.github.com/users/eveningkid/events{/privacy}","received_events_url":"https://api.github.com/users/eveningkid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T20:59:29Z","updated_at":"2018-02-06T21:06:27Z","closed_at":"2018-02-06T21:06:27Z","author_association":"NONE","body":"First of all, thanks a lot for all the time you spent working on this wonderful project. \r\n\r\nNow here is the problem I encountered: as soon as I add a few static properties to the class body, the syntax isn't highlighted correctly. I tried using the following code and both javascript/jsx modes:\r\n```javascript\r\nimport React, { Component } from 'react';\r\n\r\nclass App extends Component {\r\n  static propTypes = {\r\n    title: PropTypes.string\r\n  };\r\n\r\n  static a = {};\r\n\r\n  static hello() {\r\n    return \"Hello\";\r\n  }\r\n}\r\n```\r\n[You can see how the editor highlighted this code in codemirror here.](https://image.prntscr.com/image/RtqOXFowTeiExbcEXgKMMA.png)\r\n\r\nThat pretty sums up the issue here, hope the mistake can easily be fixed.\r\nThanks again."}}
{"actor":{"display_login":"marijnh"}}