vorpaljs / bash-parser

Parses bash into an AST
https://vorpaljs.github.io/bash-parser-playground/
MIT License
200 stars 34 forks source link

Echo without quotes seems to fail #59

Open njlr opened 6 years ago

njlr commented 6 years ago
> var parse = require('bash-parser')
undefined
> parse('echo };')
Error: Parse error on line 1: Unexpected 'Rbrace'

However, this seems to be valid:

$ echo };
}

Version:

bash-parser@^0.5.0:
  version "0.5.0"
  resolved "https://registry.yarnpkg.com/bash-parser/-/bash-parser-0.5.0.tgz#bca3adb4241a0f15c5ab1026e5c5685a9dade7ea"
  integrity sha512-AQR43o4W4sj4Jf+oy4cFtGgyBps4B+MYnJg6Xds8VVC7yomFtQekhOORQNHfQ8D6YJ0XENykr3TpxMn3rUtgeg==