1. Georg Brandl
  2. pygments-main
Issue #898 resolved

Bash code highlighting treating # as a comment

Anonymous created an issue

There are certain cases where # does not mean a comment in Bash. One case is when changing base in arithmetic expressions: http://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic

In this case, the code should not be highlighted as a comment. You can see this bug here on line 30: http://pygments.org/demo/105122/

Comments (2)

  1. Log in to comment