comparison src/tag.c @ 799:6beb2c667935

updated for version 7.0b
author vimboss
date Fri, 24 Mar 2006 22:21:52 +0000
parents 8939e7f598dc
children 4a79d6d376f0
comparison
equal deleted inserted replaced
798:95dac6af3b3a 799:6beb2c667935
3833 else if (!vim_iswhite(*p)) 3833 else if (!vim_iswhite(*p))
3834 { 3834 {
3835 char_u *s, *n; 3835 char_u *s, *n;
3836 int len; 3836 int len;
3837 3837
3838 /* Add extra field as a dict entry. */ 3838 /* Add extra field as a dict entry. Fields are
3839 * separated by Tabs. */
3839 n = p; 3840 n = p;
3840 while (*p != NUL && *p > ' ' && *p < 127 && *p != ':') 3841 while (*p != NUL && *p >= ' ' && *p < 127 && *p != ':')
3841 ++p; 3842 ++p;
3842 len = p - n; 3843 len = p - n;
3843 if (*p == ':' && len > 0) 3844 if (*p == ':' && len > 0)
3844 { 3845 {
3845 s = ++p; 3846 s = ++p;
3846 while (*p != NUL && *p > ' ' && *p < 127) 3847 while (*p != NUL && *p >= ' ' && *p < 127)
3847 ++p; 3848 ++p;
3848 n[len] = NUL; 3849 n[len] = NUL;
3849 if (add_tag_field(dict, (char *)n, s, p) == FAIL) 3850 if (add_tag_field(dict, (char *)n, s, p) == FAIL)
3850 ret = FAIL; 3851 ret = FAIL;
3851 n[len] = ':'; 3852 n[len] = ':';