[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function calls are not referenced for Bash scripts
From: |
Shigio YAMAGUCHI |
Subject: |
Re: function calls are not referenced for Bash scripts |
Date: |
Fri, 18 Jan 2019 13:28:18 +0900 |
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
2019年1月18日(金) 10:57 Andrey Butirsky <address@hidden>:
>
> Yoshitaro, yes, seems so.
>
> I just found shell parser written in Go: https://github.com/mvdan/sh.
> It allows fully parse shell script:
> https://godoc.org/mvdan.cc/sh/syntax#pkg-examples
> All parsed element positions are accessible.
> Here is the needed function calls, otherwise known as a "simple
> command": https://godoc.org/mvdan.cc/sh/syntax#CallExpr
>
> I wonder how hard it would be to adopt this parser for GLOBAL?
>
>
> On 18.01.2019 04:46, Yoshitaro Makise wrote:
> > Hello,
> >
> > For shell scripts, pygments plugin does not support function
> > references. It just support variables for references.
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-global
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB
- 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 <=
- Re: function calls are not referenced for Bash scripts, Andrey, 2019/01/18
- Re: function calls are not referenced for Bash scripts, Andrey Butirsky, 2019/01/19