diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-03-10 13:53:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 13:53:57 +0800 |
commit | 487f52c9d2580b9a10010071f9263d19bc069bd1 (patch) | |
tree | 20b1d63211544628fcbc450f64dee2c0216d3464 /src/nvim/regexp.c | |
parent | 0115b3f023da3b3b85f606e5262592b2e4c6c065 (diff) | |
download | rneovim-487f52c9d2580b9a10010071f9263d19bc069bd1.tar.gz rneovim-487f52c9d2580b9a10010071f9263d19bc069bd1.tar.bz2 rneovim-487f52c9d2580b9a10010071f9263d19bc069bd1.zip |
chore(regexp.c): correctly align META_flags (#17668)
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 0fc49cd1bf..412cdac21b 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -320,20 +320,20 @@ static int reg_strict; // "[abc" is illegal // META[] is used often enough to justify turning it into a table. static char_u META_flags[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - /* % & ( ) * + . */ - 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, - /* 1 2 3 4 5 6 7 8 9 < = > ? */ - 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, - /* @ A C D F H I K L M O */ - 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, - /* P S U V W X Z [ _ */ - 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, - /* a c d f h i k l m n o */ - 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, - /* p s u v w x z { | ~ */ - 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// % & ( ) * + . + 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, +// 1 2 3 4 5 6 7 8 9 < = > ? + 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, +// @ A C D F H I K L M O + 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, +// P S U V W X Z [ _ + 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, +// a c d f h i k l m n o + 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, +// p s u v w x z { | ~ + 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1 }; static int curchr; // currently parsed character |