{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/skylighting/issues/2","repository_url":"https://api.github.com/repos/jgm/skylighting","labels_url":"https://api.github.com/repos/jgm/skylighting/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jgm/skylighting/issues/2/comments","events_url":"https://api.github.com/repos/jgm/skylighting/issues/2/events","html_url":"https://github.com/jgm/skylighting/issues/2","id":203720477,"number":2,"title":"Cannot switch context in WordDetect","user":{"login":"lwrage","id":750311,"avatar_url":"https://avatars.githubusercontent.com/u/750311?v=3","gravatar_id":"","url":"https://api.github.com/users/lwrage","html_url":"https://github.com/lwrage","followers_url":"https://api.github.com/users/lwrage/followers","following_url":"https://api.github.com/users/lwrage/following{/other_user}","gists_url":"https://api.github.com/users/lwrage/gists{/gist_id}","starred_url":"https://api.github.com/users/lwrage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwrage/subscriptions","organizations_url":"https://api.github.com/users/lwrage/orgs","repos_url":"https://api.github.com/users/lwrage/repos","events_url":"https://api.github.com/users/lwrage/events{/privacy}","received_events_url":"https://api.github.com/users/lwrage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-27T19:34:03Z","updated_at":"2017-01-28T09:38:21Z","closed_at":null,"body":"I have a highlighting configuration for AADL which works with kate and highlighting-kate, but not with skylighting. AADL allows the embedding of sub-languages each of which may have different keywords. In my configuration I use the keyword `annex` to switch to context _Annex_ and there the sub-langugage name `emv2` to switch to the _EMV2_ context that highlights emv2 specific keywords.\r\n\r\nWhen processed with skylighting the keyword `annex` is missing from the html output and emv2 keywords are not highlighted. It seems that context switch in a WordDetect rule doesn't work.\r\n\r\nThe configuration: https://gist.github.com/lwrage/fa17916a6c61696c8e543b3bd6a93e89\r\nTest input file: https://gist.github.com/lwrage/78d6414d8a562299937f262d36ba30af\r\nOutputs form highlighting-kate and skylighting: https://gist.github.com/lwrage/2576c79e1fed879761b5fe1c5693b6d5"},"comment":{"url":"https://api.github.com/repos/jgm/skylighting/issues/comments/275838109","html_url":"https://github.com/jgm/skylighting/issues/2#issuecomment-275838109","issue_url":"https://api.github.com/repos/jgm/skylighting/issues/2","id":275838109,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2017-01-28T09:38:21Z","updated_at":"2017-01-28T09:38:21Z","body":"One thing I notice is that the WordDetect is not matching `annex`.\r\nWhen you change WordDetect to StringDetect, `annex` gets matched as a keyword.\r\nProbably this is a bug in skylighting's detection of word boundaries.\r\n"}}
{"actor":{"display_login":"jgm"}}