Does anyone know why I'm getting extra spaces in front of the keywords in my code listings? I've attached a picture of one of my listings that I've compile with showspaces=true
and showtabs=true
. You can clearly see gaps in front of the void
, range
, int
, and other keywords. However these gaps aren't denoted as being spaces with the underscoring.
The styles I'm using are:
basicstyle=\ttfamily\footnotesize,
keywordstyle=\color{black}\bfseries\rmfamily\footnotesize,
Also there are no spaces in front of any of the keywords in the keywords={
or morekeywords={
sections of my language definition.
Is it something to do with the change in font families between the keywords and regular identifiers? Does anyone have any suggestions how I can get rid of them?