title: In default latex-mode emacs $ character break color
body: <p>I need to include HTML code in LaTeX and I'm using the <code>listings</code> package for that.
  The problem is that if there is a <code>$</code> character in my HTML code the color of the word after <code>$</code> is broken in Emacs. To get the correct color I need to use another <code>$</code>.</p>
  
  <p>For example: </p>
  
  <pre><code>\begin{lstlisting}
      var mapElement = $("#map")[0];
  
      var mapOptions = {
          center: new google.maps.LatLng(43.720741,10.408413),
          zoom: 10
      };
  \end{lstlisting}
  </code></pre>
  
  <p>After the <code>$</code> character the text in the rest of the document isn't highlighted correctly.
  I'm not using AUCTeX but the default <code>latex-mode</code> of Emacs.</p>
  
  <p>Any ideas?</p>