I am using the following:
\usepackage{listings}
\lstset{
language=C,
keywordstyle=\color{pantone309!90},
morekeywords={
omp,
parallel,
\#pragma
}
}
When i now write this
\begin{lstlisting}
#pragma
#define
#pragma
#define
\end{lstlisting}
It looks like this:
How can i fix this, so that it all pragmas are highlighted as keyword ?

\documentclass{...}and ending with\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. – jub0bs Nov 11 '13 at 22:19#defineetc. are formatted not withkeywordstylebut withdirectivestyle. – marczellm Nov 11 '13 at 22:20