{"action":"created","issue":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2318","repository_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus","labels_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2318/labels{/name}","comments_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2318/comments","events_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2318/events","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2318","id":178546037,"number":2318,"title":"Enhance shell support in function List","user":{"login":"mat-m","id":1039753,"avatar_url":"https://avatars.githubusercontent.com/u/1039753?v=3","gravatar_id":"","url":"https://api.github.com/users/mat-m","html_url":"https://github.com/mat-m","followers_url":"https://api.github.com/users/mat-m/followers","following_url":"https://api.github.com/users/mat-m/following{/other_user}","gists_url":"https://api.github.com/users/mat-m/gists{/gist_id}","starred_url":"https://api.github.com/users/mat-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mat-m/subscriptions","organizations_url":"https://api.github.com/users/mat-m/orgs","repos_url":"https://api.github.com/users/mat-m/repos","events_url":"https://api.github.com/users/mat-m/events{/privacy}","received_events_url":"https://api.github.com/users/mat-m/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-22T08:02:44Z","updated_at":"2016-11-11T20:53:50Z","closed_at":"2016-11-06T11:35:14Z","body":"### Description of the Issue\n\nCurrently functions are well detected, but some awk scripts are messing with the patterns.\n### Steps to Reproduce the Issue\n1. Remove .txt extension from attachment [test_npp.sh.txt](https://github.com/notepad-plus-plus/notepad-plus-plus/files/486709/test_npp.sh.txt)\n   , and open it in npp\n2. Check the function list\n### Expected Behavior\n\nOnly the functions are listed.\n### Actual Behavior\n\nfunctions are listed, but awk-embedded blocks also are.\n![npp_function_list](https://cloud.githubusercontent.com/assets/1039753/18740472/2933947e-80aa-11e6-9aa0-bcceff01fc72.png)\n### My view\n\nI think some patterns should be stricter\nFrom [bash-hackers](http://wiki.bash-hackers.org/syntax/basicgrammar), grammar looks like:\n`NAME ()          <COMPOUND_COMMAND> <REDIRECTIONS>`\n`function NAME () <COMPOUND_COMMAND> <REDIRECTIONS>`\n`function NAME    <COMPOUND_COMMAND> <REDIRECTIONS>`\n\nSo one point is that `()` should always be empty\nanother point is that we should exclude from functions NAME the list of reserved keywords like if, while...\n### Debug Information\n\n<!--- Debug Info can be found under under the \"?\" menu -->\n\nNotepad++ v6.9.2\nBuild time : May 18 2016 - 00:34:05\nPath : C:\\Program Files (x86)\\Notepad++\\notepad++.exe\nAdmin mode : ON\nLocal Conf mode : OFF\nOS : Windows 7\nPlugins : ComparePlugin.dll mimeTools.dll NppCCompletionPlugin.dll NppConverter.dll NppExport.dll NppFTP.dll nppplugin_ofis2.dll nppplugin_solutionhub.dll nppplugin_solutionhub_ui.dll NppSaveAsAdmin.dll PluginManager.dll QuickOpenPlugin.dll XMLTools.dll \n\n<!--- Feel free to include any other info, such as screenshots, etc -->\n"},"comment":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/comments/260053102","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2318#issuecomment-260053102","issue_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/2318","id":260053102,"user":{"login":"MAPJe71","id":6494038,"avatar_url":"https://avatars.githubusercontent.com/u/6494038?v=3","gravatar_id":"","url":"https://api.github.com/users/MAPJe71","html_url":"https://github.com/MAPJe71","followers_url":"https://api.github.com/users/MAPJe71/followers","following_url":"https://api.github.com/users/MAPJe71/following{/other_user}","gists_url":"https://api.github.com/users/MAPJe71/gists{/gist_id}","starred_url":"https://api.github.com/users/MAPJe71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MAPJe71/subscriptions","organizations_url":"https://api.github.com/users/MAPJe71/orgs","repos_url":"https://api.github.com/users/MAPJe71/repos","events_url":"https://api.github.com/users/MAPJe71/events{/privacy}","received_events_url":"https://api.github.com/users/MAPJe71/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T20:53:50Z","updated_at":"2016-11-11T20:53:50Z","body":"Yes I do."}}
{"actor":{"display_login":"MAPJe71"}}