bblfsh / bash-driver

GNU General Public License v3.0
5 stars 9 forks source link

semantic: type missing prefix #67

Open r0mainK opened 5 years ago

r0mainK commented 5 years ago

The type Parameter_expansion_operator_':-' is missing the bash: prefix, unlike Parameter_expansion_operator_'!' or Parameter_expansion_operator_'-',in Semantic mode.

You can see this by parsing export foo=${foo:-bar}.

dennwc commented 5 years ago

Hmm, this one is interesting. Usually, the namespaces transform stage traverses all the nodes and adds namespaces to any node that doesn't have it already. I wonder why this case is different?

r0mainK commented 5 years ago

@dennwc found 3 more cases: Parameter_expansion_operator_':+', Parameter_expansion_operator_':=' and Parameter_expansion_operator_':?'.

I'm guessing there is some issue related to the parsing of :