I have defined two languages using
\lstdefinelanguag and then setting them using
\lstset. The point is that later when I write some listing and label them such as.
The label numbers are not consistent when I reference them with
\ref. Both the first and the second listing in my document get value
1. I assume because they are different languages. But then, I have 3 listings from the same language, and again they all have listing value. Any idea how to make listing values increase consistently?