{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3876","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3876/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3876/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3876/events","html_url":"https://github.com/codemirror/CodeMirror/issues/3876","id":139569299,"number":3876,"title":"Velocity syntax highlighting is having hard time with variables in nested quotes","user":{"login":"woshilapin","id":2520723,"avatar_url":"https://avatars.githubusercontent.com/u/2520723?v=3","gravatar_id":"","url":"https://api.github.com/users/woshilapin","html_url":"https://github.com/woshilapin","followers_url":"https://api.github.com/users/woshilapin/followers","following_url":"https://api.github.com/users/woshilapin/following{/other_user}","gists_url":"https://api.github.com/users/woshilapin/gists{/gist_id}","starred_url":"https://api.github.com/users/woshilapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woshilapin/subscriptions","organizations_url":"https://api.github.com/users/woshilapin/orgs","repos_url":"https://api.github.com/users/woshilapin/repos","events_url":"https://api.github.com/users/woshilapin/events{/privacy}","received_events_url":"https://api.github.com/users/woshilapin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T12:54:16Z","updated_at":"2016-03-09T12:58:18Z","closed_at":null,"body":"First of all, great job with CodeMirror, this is really a nice piece of software.  I'll start with the formalities.\r\n\r\nIssue observed on Linux Debian Jessie with the following webbrowsers:\r\n* Firefox (v44.0.2)\r\n* Chromium (v48.0.2564.116)\r\n* Opera (v12.16)\r\n\r\nVersion of CodeMirror is the version deployed on codemirror.net and you should be able to reproduce the bug directly [here](https://codemirror.net/mode/velocity/index.html).\r\n\r\nIn this page, copy/paste the following line of Velocity code.\r\n```\r\n#set($something = \"Hello '$me'!\")\r\n```\r\n\r\nAnd you should see that all the syntax highlighting below this line is incorrect, like if the string was never closed.  Note that there is nested quotes in this line of code but that doesn't seems to be the problem.  Note also that there is a variable inside the quote but that doesn't seem to be the problem too.  For example, the 2 following lines are not causing problems.\r\n\r\n```\r\n#set($something = \"Hello $me!\")\r\n#set($something = \"Hello 'me'!\")\r\n```\r\n\r\nIt seems that the trailing single quote after the variable is causing the problem because the following line doesn't cause problem.\r\n\r\n```\r\n#set($something = \"Hello '$me!\")\r\n```"},"comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/194285082","html_url":"https://github.com/codemirror/CodeMirror/issues/3876#issuecomment-194285082","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3876","id":194285082,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T12:58:18Z","updated_at":"2016-03-09T12:58:18Z","body":"@steveohara Would you be able to take a look at this?"}}