Mercurial > vim
comparison src/option.c @ 4444:ccecb03e5e8b v7.3.970
updated for version 7.3.970
Problem: Syntax highlighting can be slow.
Solution: Include the NFA regexp engine. Add the 'regexpengine' option to
select which one is used. (various authors, including Ken Takata,
Andrei Aiordachioaie, Russ Cox, Xiaozhou Liua, Ian Young)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 19 May 2013 19:40:29 +0200 |
parents | b7f2d97ae2b7 |
children | cadb57fbb781 |
comparison
equal
deleted
inserted
replaced
4443:34f806b8147f | 4444:ccecb03e5e8b |
---|---|
2075 (char_u *)&p_rdt, PV_NONE, | 2075 (char_u *)&p_rdt, PV_NONE, |
2076 #else | 2076 #else |
2077 (char_u *)NULL, PV_NONE, | 2077 (char_u *)NULL, PV_NONE, |
2078 #endif | 2078 #endif |
2079 {(char_u *)2000L, (char_u *)0L} SCRIPTID_INIT}, | 2079 {(char_u *)2000L, (char_u *)0L} SCRIPTID_INIT}, |
2080 {"regexpengine", "re", P_NUM|P_VI_DEF, | |
2081 (char_u *)&p_re, PV_NONE, | |
2082 {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT}, | |
2080 {"relativenumber", "rnu", P_BOOL|P_VI_DEF|P_RWIN, | 2083 {"relativenumber", "rnu", P_BOOL|P_VI_DEF|P_RWIN, |
2081 (char_u *)VAR_WIN, PV_RNU, | 2084 (char_u *)VAR_WIN, PV_RNU, |
2082 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, | 2085 {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, |
2083 {"remap", NULL, P_BOOL|P_VI_DEF, | 2086 {"remap", NULL, P_BOOL|P_VI_DEF, |
2084 (char_u *)&p_remap, PV_NONE, | 2087 (char_u *)&p_remap, PV_NONE, |
8602 if (p_hi < 0) | 8605 if (p_hi < 0) |
8603 { | 8606 { |
8604 errmsg = e_positive; | 8607 errmsg = e_positive; |
8605 p_hi = 0; | 8608 p_hi = 0; |
8606 } | 8609 } |
8610 if (p_re < 0 || p_re > 2) | |
8611 { | |
8612 errmsg = e_invarg; | |
8613 p_re = 0; | |
8614 } | |
8607 if (p_report < 0) | 8615 if (p_report < 0) |
8608 { | 8616 { |
8609 errmsg = e_positive; | 8617 errmsg = e_positive; |
8610 p_report = 1; | 8618 p_report = 1; |
8611 } | 8619 } |