Wednesday, January 28, 2015

Double quotes throws off SQL syntax colouring

I'm editing a file tmp.sql with syntax colouring. The following code
all turns yellow after the first double quote (actual file contains a
lot more code). I'm in an environment, where upgrading anything is
difficult. Is there anything superficial changes I can make to
prevent this unexpected colour behaviour?

SELECT
Field1,
COUNT(*) AS Field2,
MIN ( LEN( REPLACE( EEEPppp, "\", "" ) ) ) AS Field3,
FROM someTable
etc....

I am using gvim with the following version details.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 19 2014 10:14:40)
Included patches: 1-182
Compiled by <cygwin-xfree@cygwin.com>
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +clientserver +cscope +emacs_tags
+folding +keymap +menu +mouse_netterm
+netbeans_intg +python3/dyn -sniff -tcl
+virtualedit +writebackup
+arabic +clipboard +cursorbind +eval -
footer +langmap +mksession +mouse_sgr
+path_extra +quickfix +startuptime +terminfo
+visual +X11
+autocmd +cmdline_compl +cursorshape +ex_extra +fork
() +libcall +modify_fname -mouse_sysmouse
+perl/dyn +reltime +statusline +termresponse
+visualextra -xfontset
+balloon_eval +cmdline_hist +dialog_con_gui +extra_search
+gettext +linebreak +mouse +mouse_urxvt
+persistent_undo +rightleft -sun_workshop +textobjects
+viminfo +xim
+browse +cmdline_info +diff +farsi -
hangul_input +lispindent +mouseshape +mouse_xterm
+postscript +ruby/dyn +syntax +title
+vreplace +xsmp_interact
++builtin_terms +comments +digraphs +file_in_path
+iconv +listcmds +mouse_dec +multi_byte
+printer +scrollbind +tag_binary +toolbar
+wildignore +xterm_clipboard+byte_offset +conceal
+dnd +find_in_path +insert_expand +localmap -
mouse_gpm +multi_lang +profile +signs
+tag_old_static +user_commands +wildmenu -xterm_save
+cindent +cryptv -ebcdic +float
+jumplist +lua/dyn -mouse_jsbterm -mzscheme
+python/dyn +smartindent -tag_any_white +vertsplit
+windows +xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/etc"
f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -
D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -
I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -
I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-
2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -
I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/harfbuzz -
I/usr/include/ncursesw -ggdb -O2 -pipe -Wimplicit-function-declaration -
fdebug-prefix-map=/usr/src/ports/vim/vim-7.4.182-
1.x86_64/build=/usr/src/debug/vim-7.4.182-1 -fdebug-prefix-
map=/usr/src/ports/vim/vim-7.4.182-1.x86_64/src/vim74=/usr/src/debug/vim-
7.4.182-1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -L/usr/local/lib -Wl,--as-needed -o vim.exe -lgtk-
x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -
lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lgio-2.0 -
lXfixes -lcairo -lpixman-1 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -
lxcb -lXau -lXdmcp -lpng15 -lharfbuzz -lpango-1.0 -lm -lfontconfig -lexpat -
lfreetype -lz -lbz2 -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lintl -
liconv -lpcre -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -
lelf -lncursesw -liconv -lintl -Wl,--enable-auto-import -Wl,--export-
all-symbols -Wl,--enable-auto-image-base -fstack-protector -
L/usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE -lperl -ldl -lcrypt

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: