{"action":"created","issue":{"url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/168","labels_url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/168/comments","events_url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/168/events","html_url":"https://github.com/ligasgr/intellij-xquery/issues/168","id":120745741,"number":168,"title":"Confused string highlighting within an XML text block with {} constructs.","user":{"login":"rhdunn","id":47298,"avatar_url":"https://avatars.githubusercontent.com/u/47298?v=3","gravatar_id":"","url":"https://api.github.com/users/rhdunn","html_url":"https://github.com/rhdunn","followers_url":"https://api.github.com/users/rhdunn/followers","following_url":"https://api.github.com/users/rhdunn/following{/other_user}","gists_url":"https://api.github.com/users/rhdunn/gists{/gist_id}","starred_url":"https://api.github.com/users/rhdunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhdunn/subscriptions","organizations_url":"https://api.github.com/users/rhdunn/orgs","repos_url":"https://api.github.com/users/rhdunn/repos","events_url":"https://api.github.com/users/rhdunn/events{/privacy}","received_events_url":"https://api.github.com/users/rhdunn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ligasgr/intellij-xquery/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ligasgr/intellij-xquery/labels/M","name":"M","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T10:48:15Z","updated_at":"2015-12-13T21:23:15Z","closed_at":null,"body":"Given:\r\n\r\n    declare function foo($a, $b) {\r\n        <foo>a is '{$a}<caret></foo>\r\n    };\r\n    ()\r\n\r\nTyping `'` causes the string from the inserted `'` (i.e. `'</foo>\\n};\\n()`) to be highlighted with the string colour.\r\n\r\nThen typing `, b is '{$b}'` results in `', b is '` being highlighted as a string, in addition to `'</foo>\\n};\\n()`.\r\n\r\nSelecting the `<foo>a is '{$a}', b is '{$b}'</foo>` line, cutting it (Ctrl+X) then pasting it (Ctrl+V) results in the correct behaviour -- the `a is '{$a}', b is '{$b}'` text is highlighted as black text on white.\r\n\r\nSelecting that line again, then pasting the previously selected line contents (Ctrl+V) results in only `'</foo>\\n};\\n()` being highlighted as a string.\r\n\r\nNOTE: The behaviour is the same when using `\"` instead of `'`."},"comment":{"url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/comments/164299505","html_url":"https://github.com/ligasgr/intellij-xquery/issues/168#issuecomment-164299505","issue_url":"https://api.github.com/repos/ligasgr/intellij-xquery/issues/168","id":164299505,"user":{"login":"ligasgr","id":1649183,"avatar_url":"https://avatars.githubusercontent.com/u/1649183?v=3","gravatar_id":"","url":"https://api.github.com/users/ligasgr","html_url":"https://github.com/ligasgr","followers_url":"https://api.github.com/users/ligasgr/followers","following_url":"https://api.github.com/users/ligasgr/following{/other_user}","gists_url":"https://api.github.com/users/ligasgr/gists{/gist_id}","starred_url":"https://api.github.com/users/ligasgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligasgr/subscriptions","organizations_url":"https://api.github.com/users/ligasgr/orgs","repos_url":"https://api.github.com/users/ligasgr/repos","events_url":"https://api.github.com/users/ligasgr/events{/privacy}","received_events_url":"https://api.github.com/users/ligasgr/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T21:23:15Z","updated_at":"2015-12-13T21:23:15Z","body":"Ahh. I see your point now. Initially I missed the fact that you are inserting the closing quote in <caret>'s place.\r\nThat's definitely a bug an I'll try to fix it."}}