idank / bashlex

Python parser for bash
GNU General Public License v3.0
550 stars 94 forks source link

Variable names cannot have numbers in them #66

Closed BlankCanvasStudio closed 2 years ago

BlankCanvasStudio commented 2 years ago

If a variable declaration has a number in it, the parser will treat it as a singular word entity. This is true in bash only if the 1st character is a number. 2all=something, will not be treated as a variable declaration according to bash, but a2ll=something is treated as a variable declaration. The parser currently treats both of these are not being assignment statements.