diff options
Diffstat (limited to 'parsing/lexer.sh')
-rw-r--r-- | parsing/lexer.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/parsing/lexer.sh b/parsing/lexer.sh index e1d3aab..b03878d 100644 --- a/parsing/lexer.sh +++ b/parsing/lexer.sh @@ -389,6 +389,19 @@ scan_wordexp() ;; '(') # Arithmetic expansion or command substitution + pgetc + case "${c}" in + '(') + # Arithmetic expansion + synerr 'Arithmetic expansion is %s' \ + 'not yet supported' + ;; + *) + # Command substitution + synerr 'Command substitution is %s' \ + 'not yet supported' + ;; + esac ;; [@*#?$!A-Za-z0-9_-]) res="$(scan_param)" @@ -586,10 +599,11 @@ error() init_lexer() { local fn="${1}" - shift 1 + local ln="${2}" + shift 2 fname="${fn}" - lineno=1 + lineno=${ln} tokens='' pgetc next |