[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function calls are not referenced for Bash scripts
From: |
Andrey Butirsky |
Subject: |
Re: function calls are not referenced for Bash scripts |
Date: |
Sun, 20 Jan 2019 02:28:45 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0 |
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
- function calls are not referenced for Bash scripts, Andrey Butirsky, 2019/01/15
- function calls are not referenced for Bash scripts, Andrey Butirsky, 2019/01/15
- Re: function calls are not referenced for Bash scripts, Shigio YAMAGUCHI, 2019/01/15
- Re: function calls are not referenced for Bash scripts, Andrey Butirsky, 2019/01/15
- Re: function calls are not referenced for Bash scripts, Yoshitaro Makise, 2019/01/17
- Re: function calls are not referenced for Bash scripts, Andrey Butirsky, 2019/01/17
- Re: function calls are not referenced for Bash scripts, Shigio YAMAGUCHI, 2019/01/17
- Re: function calls are not referenced for Bash scripts, Andrey, 2019/01/18
- Re: function calls are not referenced for Bash scripts,
Andrey Butirsky <=