comments inside parentheses mess up the syntax coloring of shell script

Bug #1380110 reported by Laurent Lyaudet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

I've found the following bug with syntax coloring of shell scripts in vi and vim.
If you add comments outside parenthesis, it works fine.
But if you add comments inside parenthesis, or worse comments with quotes, the syntax coloring is totally messed up.

I join a sample shell script to demonstrate the bug.

Best regards,
   Laurent Lyaudet

Revision history for this message
Laurent Lyaudet (laurent-lyaudet) wrote :
Revision history for this message
Paul White (paulw2u) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to review all reported bugs in a timely manner.

No version information has been given and with no comments for over nine years I'm closing this as 'Invalid'. If this issue is still relevant in a currently supported release of Ubuntu then please let us know which one(s) so that the Ubuntu developers can focus their attention on specific Ubuntu releases.

You should also then change the status of the bug report back to 'New'.

Changed in vim (Ubuntu):
status: New → Invalid
Changed in vim (Ubuntu):
status: Invalid → New
Revision history for this message
Laurent Lyaudet (laurent-lyaudet) wrote :

Hello Paul :),
The bug is still here as can be seen in the screenshot I just took and attached to this comment.
I just downloaded the "sample script to reproduce the bug" I attached 9 years ago and opened it with Vim on my laptop.
You can see that the commands inside parentheses are white instead of yellow and that "test" in "test.txt" is yellow.
Below are the informations regarding Vim version.
It is the latest one given with Mantic Minotaur.
Best regards,
   Laurent Lyaudet

Revision history for this message
Laurent Lyaudet (laurent-lyaudet) wrote :
Download full text (3.5 KiB)

laurent@laurent-GL73-8SD:~$ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compilé Oct 16 2023 18:21:01)
Rustines incluses : 1-1672, 1840, 1846-1848, 1857-1858, 1873, 1969, 1992, 2010
Modifié par <email address hidden>
Compilé par <email address hidden>
Énorme version sans interface graphique.
  Fonctionnalités incluses (+) ou non (-) :
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand -perl +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
-clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap -ruby +wildignore
+cursorbind -lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname +sodium -X11
+digraphs +mouse -sound -xfontset
-dnd -mouseshape +spell -xim
-ebcdic +mouse_dec +startuptime -xpm
+emacs_tags +mouse_gpm +statusline -xsmp
+eval -mouse_jsbterm -sun_workshop -xterm_clipboard
+ex_extra +mouse_netterm +syntax -xterm_save
+extra_search +mouse_sgr +tag_binary
-farsi -mouse_sysmouse -tag_old_static
         fichier vimrc système : "/etc/vim/vimrc"
     fichier vimrc utilisateur : "$HOME/.vimrc"
  2e fichier vimrc utilisateur : "~/.vim/vimrc"
      fichier exrc utilisateur : "$HOME/.exrc"
 fichier de valeurs par défaut : "$VIMRUNTIME/defaults.vim"
               $VIM par défaut : "/usr/share/vim"
Compilation : gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-itVrJX/vim-9.0.1672=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/vim-itVrJX/vim-9.0.1672=/usr/src/vim-2:9.0.1672-1ubuntu2.1 -DSYS_VIMR...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.