{"action":"created","issue":{"url":"https://api.github.com/repos/atom/language-javascript/issues/204","labels_url":"https://api.github.com/repos/atom/language-javascript/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/atom/language-javascript/issues/204/comments","events_url":"https://api.github.com/repos/atom/language-javascript/issues/204/events","html_url":"https://github.com/atom/language-javascript/issues/204","id":102809750,"number":204,"title":"Syntax highlighting breaks on funky regular expressions","user":{"login":"shawninder","id":484730,"avatar_url":"https://avatars.githubusercontent.com/u/484730?v=3","gravatar_id":"","url":"https://api.github.com/users/shawninder","html_url":"https://github.com/shawninder","followers_url":"https://api.github.com/users/shawninder/followers","following_url":"https://api.github.com/users/shawninder/following{/other_user}","gists_url":"https://api.github.com/users/shawninder/gists{/gist_id}","starred_url":"https://api.github.com/users/shawninder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawninder/subscriptions","organizations_url":"https://api.github.com/users/shawninder/orgs","repos_url":"https://api.github.com/users/shawninder/repos","events_url":"https://api.github.com/users/shawninder/events{/privacy}","received_events_url":"https://api.github.com/users/shawninder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/language-javascript/labels/more-information-needed","name":"more-information-needed","color":"009800"},{"url":"https://api.github.com/repos/atom/language-javascript/labels/needs-reproduction","name":"needs-reproduction","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-24T14:42:58Z","updated_at":"2015-08-25T13:01:15Z","closed_at":null,"body":"I don't know what is causing the problem, but the syntax highlighting messes up after this line (the text that follows is orange all the way down until the next `/`):\r\n\r\n```js\r\nvar re = /(url\\()(?:\\s*(?!https?:\\/\\/|data:)((?:[^\"'()\\\\]|\\\\(?:[^\\n0-9a-fA-F]|[0-9a-fA-F]{1,6}\\s?))*)\\s*|\\s*\"(?!https?:\\/\\/|data:)((?:[^\"\\\\\\n]|\\\\(?:[^\\n0-9a-fA-F]|[0-9a-fA-F]{1,6}\\s?)|\\\\\\n)*)\"\\s*|\\s*'(?!https?:\\/\\/|data:)((?:[^'\\\\\\n]|\\\\(?:[^\\n0-9a-fA-F]|[0-9a-fA-F]{1,6}\\s?)|\\\\\\n)*)'\\s*)(\\))/gi\r\n```\r\n\r\nI realize how ugly that line is, but it is correct. I know this because Sublime Text doesn't exhibit the syntax highlighting problem and also because all the tests are passing. If you're curious, this matches the urls in CSS files.\r\n\r\nSince Sublime Text correctly syntax highlights this, perhaps you can look up how it's done there and see what the difference is with what you're doing here?"},"comment":{"url":"https://api.github.com/repos/atom/language-javascript/issues/comments/134577951","html_url":"https://github.com/atom/language-javascript/issues/204#issuecomment-134577951","issue_url":"https://api.github.com/repos/atom/language-javascript/issues/204","id":134577951,"user":{"login":"50Wliu","id":2766036,"avatar_url":"https://avatars.githubusercontent.com/u/2766036?v=3","gravatar_id":"","url":"https://api.github.com/users/50Wliu","html_url":"https://github.com/50Wliu","followers_url":"https://api.github.com/users/50Wliu/followers","following_url":"https://api.github.com/users/50Wliu/following{/other_user}","gists_url":"https://api.github.com/users/50Wliu/gists{/gist_id}","starred_url":"https://api.github.com/users/50Wliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/50Wliu/subscriptions","organizations_url":"https://api.github.com/users/50Wliu/orgs","repos_url":"https://api.github.com/users/50Wliu/repos","events_url":"https://api.github.com/users/50Wliu/events{/privacy}","received_events_url":"https://api.github.com/users/50Wliu/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T13:01:15Z","updated_at":"2015-08-25T13:01:15Z","body":"Yeah, it'd be great if you two could both paste the output of `apm list --installed` (or, preferably, reproduce using `atom --safe`) :smile:.\r\n\r\nJust checked and I can still repro in safe mode."}}