Closed muhgatus closed 11 years ago
function pscr() { [ "${allargs/-v/}" != "$allargs" ] && echo "$@" && return 0 || return 1 }
***ERROR in scanner.rb:200:in tokenize': undefined methodfirst' for nil:NilCl ass (after 0 tokens)
tokenize': undefined method
tokens:
current line: 2 column: 16 pos: 27 matched: ")" state: "Error in CodeRay::Scanners::Bash#scan_tokens, initial stat e was: :initial" bol? = false, eos? = false
surrounding code: "fi\n" ~~ " {\n [ \"${allargs/-v/}\" != \"$a"
can you try with lastest version with codez patches (v1.0.3)?
I can confirm that its work with v1.0.3! have a problem similar to this, i open a new issue :)
Bash:
function pscr() { [ "${allargs/-v/}" != "$allargs" ] && echo "$@" && return 0 || return 1 }
Error:
***ERROR in scanner.rb:200:in
tokenize': undefined method
first' for nil:NilCl ass (after 0 tokens)tokens:
current line: 2 column: 16 pos: 27 matched: ")" state: "Error in CodeRay::Scanners::Bash#scan_tokens, initial stat e was: :initial" bol? = false, eos? = false
surrounding code: "fi\n" ~~ " {\n [ \"${allargs/-v/}\" != \"$a"