Hello Shigio and all,
I took another way and just applied following "hack" for Pygments shell
lexer:

|--- pygments/lexers/shell.py~   2017-01-23 00:01:32.000000000 +0300||
||+++ /usr/lib64/python2.7/site-packages/pygments/lexers/shell.py
2019-01-20 01:56:56.724115547 +0300||
||@@ -85,7 +85,7 @@||
||             (r'\|', Punctuation),||
||             (r'\s+', Text),||
||             (r'\d+\b', Number),||
||-            (r'[^=\s\[\]{}()$"\'`\\<&|;]+', Text),||
||+            (r'[^=\s\[\]{}()$"\'`\\<&|;]+', Name.Function),||
||             (r'<', Text),||
||         ],||
||         'string': [||
|

Then Global started to show function call references for shell scripts!

Could you suggest if it reliable hack, or maybe you have better approach?
Thanks.


On 18.01.2019 07:28, Shigio YAMAGUCHI wrote:
> The method of writing plug-in parser is written in
> 'plugin-factory/PLUGIN_HOWTO' in the GLOBAL package.
>
> The following examples will help you.
>         plugin-factory/exuberant-ctags.c
>         plugin-factory/pygments-parser.c
>         plugin-factory/user-custom.c
>
> Please ask me if you have any questions.
>
> Regards,
> Shigio
_______________________________________________
Bug-global mailing list
Bug-global@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to