pejuko / coderay_bash

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

Adding :ignore_errors option #2

Closed codez closed 13 years ago

codez commented 13 years ago

I added a boolean option called :ignore_errors to suppress marking of >>>>>errorenous<<<<< tokens. If the option is set, the affected tokens are marked as kind :plain.

Furthermore, we had an issue with strings following directly something else like'this'. The fix is in the second commit, I hope it does not break other valid bash syntax.

See the tests for examples.

Cheers, Pascal

pejuko commented 13 years ago

Greate Pascal! I've only made :ignore_errors default option. This error token was kind of debug message and I believe that is better to ignore them.

Thanks, fix gem was released, Petr