pejuko / coderay_bash

Simple bash scanner for highlighting with coderay.
coderay_bash
MIT License
9 stars 5 forks source link

Failed on bash script #8

Closed muhgatus closed 11 years ago

muhgatus commented 12 years ago

Bash:

function pscr() { [ "${allargs/-v/}" != "$allargs" ] && echo "$@" && return 0 || return 1 }

Error:

***ERROR in scanner.rb:200:in tokenize': undefined methodfirst' 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"

pejuko commented 12 years ago

can you try with lastest version with codez patches (v1.0.3)?

ghost commented 11 years ago

I can confirm that its work with v1.0.3! have a problem similar to this, i open a new issue :)