我想添加一個正則表達式ctrlp,時髦的打字稿功能,但是它正在迎頭趕上,如果和開關。 如何修改這個正則表達式不包括是包含{}
if
或switch
或函數調用的話。VIM正則表達式 - 字不啓動與
\v\s*\w+\s*\(.*\{
應該能夠匹配這些
greet() {
ifExists() {
public static greet(a: any) {
,但應排除。 (請注意(
中的空格和{
)。
if (x) {
if(x) {
switch (x) {
helloworld({a: null});
它是打字稿 – prabir 2015-05-14 08:01:21