Re: [patch] Taskwarrior syntax file update
On Sat, Jul 12, 2014 at 11:52 PM, Bram Moolenaar b...@moolenaar.net wrote: Patch attached. I have no idea who you are. I have contacted John Florian, the Maintainer of these syntax files, and he suggested me to send them myself. I figured I should send a patch to vim-...@vim.org. Is there anything wrong? -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [patch] Taskwarrior syntax file update
Bram Moolenaar b...@moolenaar.net wrote: lolilolicon wrote: I have contacted John Florian, the Maintainer of these syntax files, and he suggested me to send them myself. I figured I should send a patch to vim-...@vim.org. Is there anything wrong? Yes, I don't include text written by anonymous. Copyright does not allow distributing text without permission, and permission can only be granted by a person. I won't comment on that. Since you want a person, I have asked (probably Mr.) John Florian to resend this. I also don't like writing messages without knowing who I'm talking to. Man you're like a bank. -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[patch] Taskwarrior syntax file update
Patch attached. -- -- You received this message from the vim_dev 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_dev group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. diff -uNr a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim 2014-07-11 13:17:50.281190717 + +++ b/runtime/filetype.vim 2014-07-11 13:27:48.472771369 + @@ -2137,7 +2137,9 @@ Task au BufRead,BufNewFile {pending,completed,undo}.data setf taskdata -au BufRead,BufNewFile *.task setf taskedit +au BufRead,BufNewFile backlog.data setf javascript +au BufRead,BufNewFile *.task setf taskedit +au BufRead,BufNewFile .taskrc setf taskrc Tcl (JACL too) au BufNewFile,BufRead *.tcl,*.tk,*.itcl,*.itk,*.jacl setf tcl diff -uNr a/runtime/synmenu.vim b/runtime/synmenu.vim --- a/runtime/synmenu.vim 2014-07-11 13:18:00.801042654 + +++ b/runtime/synmenu.vim 2014-07-11 13:26:31.613853133 + @@ -526,6 +526,7 @@ an 50.130.150 Syntax.T.Tar\ listing :cal SetSyn(tar)CR an 50.130.160 Syntax.T.Task\ data :cal SetSyn(taskdata)CR an 50.130.170 Syntax.T.Task\ 42\ edit :cal SetSyn(taskedit)CR +an 50.130.170 Syntax.T.Task\ RC :cal SetSyn(taskrc)CR an 50.130.180 Syntax.T.Tcl/Tk :cal SetSyn(tcl)CR an 50.130.190 Syntax.T.TealInfo :cal SetSyn(tli)CR an 50.130.200 Syntax.T.Telix\ Salt :cal SetSyn(tsalt)CR diff -uNr a/runtime/syntax/taskdata.vim b/runtime/syntax/taskdata.vim --- a/runtime/syntax/taskdata.vim 2014-07-11 13:17:18.001645041 + +++ b/runtime/syntax/taskdata.vim 2014-07-11 13:51:05.286445013 + @@ -1,7 +1,8 @@ Vim syntax file Language: task data Maintainer: John Florian jflor...@doubledog.org - Updated: Wed Jul 8 19:46:20 EDT 2009 + Contributors: lolilolicon loliloli...@gmail.com + Updated: Fri Jul 11 00:00:00 UTC 2014 For version 5.x: Clear all syntax items. @@ -17,6 +18,7 @@ Key Names for values. syn keyword taskdataKey description due end entry imask mask parent syn keyword taskdataKey priority project recur start status tags uuid +syn keyword taskdataKey modified scheduled until wait syn match taskdataKey annotation_\d\+ syn match taskdataUndo ^time.*$ syn match taskdataUndo ^\(old \|new \|---\) @@ -24,7 +26,7 @@ Values associated with key names. Strings -syn region taskdataString matchgroup=Normal start=++ end=++ +syn region taskdataString matchgroup=Normal start=++ skip=+\\+ end=++ \ contains=taskdataEncoded,taskdataUUID,@Spell Special Embedded Characters (e.g., comma;) diff -uNr a/runtime/syntax/taskedit.vim b/runtime/syntax/taskedit.vim --- a/runtime/syntax/taskedit.vim 2014-07-11 13:17:27.458178611 + +++ b/runtime/syntax/taskedit.vim 2014-07-11 13:51:05.289778299 + @@ -1,7 +1,8 @@ Vim syntax file Language: support for 'task 42 edit' Maintainer: John Florian jflor...@doubledog.org - Updated: Wed Jul 8 19:46:32 EDT 2009 + Contributors: lolilolicon loliloli...@gmail.com + Updated: Fri Jul 11 00:00:00 UTC 2014 For version 5.x: Clear all syntax items. @@ -19,18 +20,16 @@ syn match taskeditReadOnly ^\s*#\s*\(UU\)\?ID:.*$ contained syn match taskeditReadOnly ^\s*#\s*Status:.*$ contained syn match taskeditReadOnly ^\s*#\s*i\?Mask:.*$ contained -syn match taskeditKey ^ *.\{-}: nextgroup=taskeditString -syn match taskeditComment ^\s*#.*$ - \ contains=taskeditReadOnly,taskeditHeading -syn match taskeditString .*$ contained contains=@Spell - +syn region taskeditKeyValue matchgroup=taskeditKey start=^ \S.\{-}: skip=^\s*# end=^ \S.\{-}:me=s-1,he=s-1,re=s-1 contains=taskeditKey,taskeditValue,taskeditComment +syn match taskeditValue .*$ contained contains=@Spell +syn match taskeditComment ^\s*#.*$ contains=taskeditReadOnly,taskeditHeading The default methods for highlighting. Can be overridden later. hi def link taskeditComment Comment hi def link taskeditHeading Function -hi def link taskeditKey Statement +hi def link taskeditKey Statement hi def link taskeditReadOnly Special -hi def link taskeditString String +hi def link taskeditValue String let b:current_syntax = taskedit diff -uNr a/runtime/syntax/taskrc.vim b/runtime/syntax/taskrc.vim --- a/runtime/syntax/taskrc.vim 1970-01-01 00:00:00.0 + +++ b/runtime/syntax/taskrc.vim 2014-07-11 13:51:05.316444590 + @@ -0,0 +1,164 @@ + Vim syntax file + Language: taskrc + Maintainer: John Florian jflor...@doubledog.org + Contributors: lolilolicon loliloli...@gmail.com + Updated: Fri Jul 11 00:00:00 UTC 2014 + + + For version 5.x: Clear all syntax items. + For version 6.x: Quit when a syntax file was already loaded. +if version 600 + syntax clear +elseif exists(b:current_syntax) + finish +endif +let s:keepcpo= cpo +set cpovim + +syn match taskrcVal .\{-}$ contains
VIM freezes with :filetype indent on
This bug is tracked down to the line filetype indent on in my ~/.vimrc; I opened the C file with `vim --noplugin foo.c' and reduced my ~/.vimrc to contain only the above line. `:set filetype' outputs `filetype=c'. `:filetype' outputs `filetype detection:ON plugin:OFF indent:ON'. To reproduce: 1. Put the following in .vimrc: filetype indent on 2. Save the following as foo.c, #include stdio.h #include stdlib.h #include xcb/xcb.h int main(int argc, const char *argv[]) { /* geometric objects */ xcb_rectangle_t rectangles[] = { { 10, 50, 40, 20}, { 80, 50, 10, 40}}; } 3. Open foo.c with VIM, move cursor to the line { 80, 50, 10, 40}}; press `o'. VIM freezes, as if in a dead loop. 4. ^C to break out of the loop. A newline is inserted, the new line is not indented. Additional info: $ vim --version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 18 2011 23:14:19) Included patches: 1-338 Compiled by ArchLinux Big version with GTK2 GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra +perl +persistent_undo +postscript +printer -profile +python/dyn +python3/dyn +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save system vimrc file: /etc/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file: /etc/gvimrc user gvimrc file: $HOME/.gvimrc system menu file: $VIMRUNTIME/menu.vim fall-back for $VIM: /usr/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -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/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/local/include -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=1 Linking: gcc -L. -Wl,--hash-style=gnu -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/local/lib -Wl,--as-needed -o vim -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl-lacl -lattr -lgpm -ldl-Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc-lruby -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib -- You received this message from the vim_dev 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