bug#7921: 23.2.91; js-mode font lock problem with comments
From:
Evan Owens
Subject:
bug#7921: 23.2.91; js-mode font lock problem with comments
Date:
Wed, 26 Jan 2011 09:56:37 -0500
--text follows this line-- This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them.
Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q':
Given an HTML/JS file with the following content:
<h1>Here is some HTML</h1>
<script type="text/_javascript_"> Event.onDOMReady(function() { // comment one function createCookie(name, value, expires) { if (expires) {
var date = new Date(); date.setTime(date.getTime()+(expires*24*60*60*1000)); expires = "; expires="+date.toGMTString(); } else { expires = '';
} document.cookie = name+"="+value+expires+"; path=/"; };
if ($('discount-details-link')) { // comment two Event.observe($('discount-details-link'), 'click', function() {
Effect.Appear('discount-popup'); }); } // nXhtml seems to think everything below comment two is a string... }); </script>
Note that everything under "// comment two" is fontified as a string.
If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file
c:/cygwin/usr/local/emacs/emacs-23.2.91/etc/DEBUG.
In GNU Emacs 23.2.91.1 (i386-mingw-nt6.1.7600) of 2010-12-11 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'
Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil
value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t
Major mode: _javascript_
Minor modes in effect: show-paren-mode: t icomplete-mode: t
global-hl-line-mode: t nxhtml-menu-mode: t nxhtml-tag-do-also: t popcmp-group-alternatives: t popcmp-short-help-beside-alts: t shell-dirtrack-mode: t mlinks-active-links: t recentf-mode: t
rngalt-minimal-validation-header: t rngalt-display-validation-header: t global-ede-mode: t global-auto-complete-mode: t auto-complete-mode: t flymake-mode: t tooltip-mode: t mouse-wheel-mode: t
menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t
transient-mark-mode: (only . t)
Recent input: <wheel-down> <double-wheel-down> <triple-wheel-down> <wheel-down> <double-wheel-down> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<wheel-down> <double-wheel-down> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down> <down-mouse-1> <mouse-1> C-x C-f C-a C-f C-a <C-right>
<C-right> <C-left> C-k U s e r <tab> E v <tab> SPC O <tab> D o <tab> w <tab> t e <tab> s <tab> <return> <down> <down> C-x 1 <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <up> <up> <up> <up> <up> <up> <up> <down>
<down> <down> <down> <down> <down> <down> <down> <up> <up> <up> <up> <up> <up> <up> <escape> x r e p o r t <tab> <return> <help-echo> <down-mouse-1> <mouse-movement>
<mouse-1> <help-echo> f o n t <backspace> <down-mouse-1> <mouse-movement> <drag-mouse-1> <up> <up> <escape> x j s C-g <up> <up> <up> C-_ <up> <up> <escape> x j
s SPC m o d e <return> <down> <down> <down> <down> <down> <down> <down> <down> <down> <up> <up> <up> <up> <help-echo> <down-mouse-1> <mouse-1> <help-echo> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <escape> x r e p o <tab> t <tab> e <backspace> <backspace> r <tab> e <backspace> <return>
Recent messages:
Using vacuous schema Error in menu-bar-update-hook: (error This buffer cannot use `imenu-default-create-index-function') byte-code: Command attempted to use minibuffer while in minibuffer Quit Undo! Using vacuous schema [3 times]
Fontifying test.php... (syntactically...) Using vacuous schema Mark set Making completion list...