bob <script> var bob = 3; </script>
Should end up as
<em>bob</em> <script> var bob = 3; </script>
<em>bob</em> <script> var <em>bob</em> = 3; </script>
In the meantime, I've disable highlighting, but any chance of updating relevanssi_highlight_terms() so it avoids everything between script tags altogether?