emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bad syntax highlighting in shell-script mode


From: Chris Moore
Subject: bad syntax highlighting in shell-script mode
Date: Sun, 16 Jul 2006 18:23:30 +0200

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


I saved the following into a file called script.sh and then visited
the file.  The "echo a backquote" comment was coloured as if it was a
string, as was the rest of the file after the comment:

------------------------------------------------------------------------
#!/bin/sh
echo "\`"                       # echo a backquote
echo hello
echo hello
echo hello
echo "hello"
------------------------------------------------------------------------

I changed the file, removing the last 2 double quotes, and re-visited
the file.  The comment was then coloured correctly, as was the rest of
the file:

------------------------------------------------------------------------
#!/bin/sh
echo "\`"                       # echo a backquote
echo hello
echo hello
echo hello
echo hello
------------------------------------------------------------------------

It seems that the presence of double quotes in the file after the \`
breaks highlighting.



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'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.0.50/etc/DEBUG for instructions.


In GNU Emacs 22.0.50.132 (i686-pc-linux-gnu, GTK+ Version 2.8.18)
 of 2006-07-10 on chrislap
X server distributor `The X.Org Foundation', version 11.0.70000000
configured using `configure '--with-gtk' '--with-xpm' '--with-jpeg'
'--with-png' '--with-gif''

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: en_GB.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Shell-script

Minor modes in effect:
  show-paren-mode: t
  display-time-mode: t
  iswitchb-mode: t
  dynamic-completion-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t






reply via email to

[Prev in Thread] Current Thread [Next in Thread]