diff options
author | James McCoy <jamessan@jamessan.com> | 2016-09-22 00:40:45 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-09-24 14:03:22 -0400 |
commit | 45598d2e5e2b56e24e4d5abe4f28f259e3def572 (patch) | |
tree | 809db52bae466f1e283f8a8c8a6024596c5ea67b /scripts/genunicodetables.lua | |
parent | 49735d6fae3d99a05ff63625bb0baf10deae9c71 (diff) | |
download | rneovim-45598d2e5e2b56e24e4d5abe4f28f259e3def572.tar.gz rneovim-45598d2e5e2b56e24e4d5abe4f28f259e3def572.tar.bz2 rneovim-45598d2e5e2b56e24e4d5abe4f28f259e3def572.zip |
vim-patch:7.4.1620
Problem: Emoji characters are not considered as a kind of word character.
Solution: Give emoji characters a word class number. (Yashuhiro Matsumoto)
https://github.com/vim/vim/commit/4077b33a8370afb3d5ae74e556a0119cf51fe294
Diffstat (limited to 'scripts/genunicodetables.lua')
-rw-r--r-- | scripts/genunicodetables.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/genunicodetables.lua b/scripts/genunicodetables.lua index 08b8b0f90e..75adb36a8f 100644 --- a/scripts/genunicodetables.lua +++ b/scripts/genunicodetables.lua @@ -12,7 +12,7 @@ -- 2 then interval applies only to first, third, fifth, … character in range. -- Fourth value is number that should be added to the codepoint to yield -- folded/lower/upper codepoint. --- 4. emoji table: sorted list of non-overlapping closed intervals of Emoji +-- 4. emoji_tab table: sorted list of non-overlapping closed intervals of Emoji -- characters if arg[1] == '--help' then print('Usage:') @@ -221,7 +221,7 @@ local build_width_table = function(ut_fp, dataprops, widthprops, widths, end local build_emoji_table = function(ut_fp, emojiprops) - ut_fp:write('static const struct interval emoji[] = {\n') + ut_fp:write('static const struct interval emoji_tab[] = {\n') for _, p in ipairs(emojiprops) do if p[2]:match('Emoji%s+#') then local start, end_ = p[1]:find('%.%.') |