Mercurial > vim
comparison src/option.c @ 7687:61354fabf8a2 v7.4.1142
commit https://github.com/vim/vim/commit/b8060fe862f684b591f9ac679eac5b2594d6c5a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 19 22:29:28 2016 +0100
patch 7.4.1142
Problem: Cannot define keyword characters for a syntax file.
Solution: Add the ":syn iskeyword" command. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Jan 2016 22:30:07 +0100 |
parents | c9fc24b76293 |
children | f04e2b6feea2 |
comparison
equal
deleted
inserted
replaced
7686:fad587cb360a | 7687:61354fabf8a2 |
---|---|
5492 #ifdef FEAT_TEXTOBJ | 5492 #ifdef FEAT_TEXTOBJ |
5493 check_string_option(&buf->b_p_qe); | 5493 check_string_option(&buf->b_p_qe); |
5494 #endif | 5494 #endif |
5495 #ifdef FEAT_SYN_HL | 5495 #ifdef FEAT_SYN_HL |
5496 check_string_option(&buf->b_p_syn); | 5496 check_string_option(&buf->b_p_syn); |
5497 check_string_option(&buf->b_s.b_syn_isk); | |
5497 #endif | 5498 #endif |
5498 #ifdef FEAT_SPELL | 5499 #ifdef FEAT_SPELL |
5499 check_string_option(&buf->b_s.b_p_spc); | 5500 check_string_option(&buf->b_s.b_p_spc); |
5500 check_string_option(&buf->b_s.b_p_spf); | 5501 check_string_option(&buf->b_s.b_p_spf); |
5501 check_string_option(&buf->b_s.b_p_spl); | 5502 check_string_option(&buf->b_s.b_p_spl); |
10819 #endif | 10820 #endif |
10820 #ifdef FEAT_SYN_HL | 10821 #ifdef FEAT_SYN_HL |
10821 /* Don't copy 'syntax', it must be set */ | 10822 /* Don't copy 'syntax', it must be set */ |
10822 buf->b_p_syn = empty_option; | 10823 buf->b_p_syn = empty_option; |
10823 buf->b_p_smc = p_smc; | 10824 buf->b_p_smc = p_smc; |
10825 buf->b_s.b_syn_isk = empty_option; | |
10824 #endif | 10826 #endif |
10825 #ifdef FEAT_SPELL | 10827 #ifdef FEAT_SPELL |
10826 buf->b_s.b_p_spc = vim_strsave(p_spc); | 10828 buf->b_s.b_p_spc = vim_strsave(p_spc); |
10827 (void)compile_cap_prog(&buf->b_s); | 10829 (void)compile_cap_prog(&buf->b_s); |
10828 buf->b_s.b_p_spf = vim_strsave(p_spf); | 10830 buf->b_s.b_p_spf = vim_strsave(p_spf); |