bug-global
[Top][All Lists]
Advanced

[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: Fri, 18 Jan 2019 04:57:17 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]