Created
June 5, 2012 05:03
xterm-279: Allow Chinese/Japanese to be selected as an ASCII word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- charclass.c.orig 2009-11-05 17:46:15.000000000 -0600 | |
+++ charclass.c 2012-06-05 00:08:48.870241313 -0500 | |
@@ -116,18 +116,8 @@ init_classtab(void) | |
SetCharacterClassRange(0x200b, 0x27ff, IDENT); /* punctuation and symbols */ | |
SetCharacterClassRange(0x2070, 0x207f, 0x2070); /* superscript */ | |
SetCharacterClassRange(0x2080, 0x208f, 0x2080); /* subscript */ | |
- SetCharacterClassRange(0x3000, 0x3000, BLANK); /* ideographic space */ | |
- SetCharacterClassRange(0x3001, 0x3020, IDENT); /* ideographic punctuation */ | |
- SetCharacterClassRange(0x3040, 0x309f, 0x3040); /* Hiragana */ | |
- SetCharacterClassRange(0x30a0, 0x30ff, 0x30a0); /* Katakana */ | |
- SetCharacterClassRange(0x3300, 0x9fff, 0x4e00); /* CJK Ideographs */ | |
SetCharacterClassRange(0xac00, 0xd7a3, 0xac00); /* Hangul Syllables */ | |
- SetCharacterClassRange(0xf900, 0xfaff, 0x4e00); /* CJK Ideographs */ | |
SetCharacterClassRange(0xfe30, 0xfe6b, IDENT); /* punctuation forms */ | |
- SetCharacterClassRange(0xff00, 0xff0f, IDENT); /* half/fullwidth ASCII */ | |
- SetCharacterClassRange(0xff1a, 0xff20, IDENT); /* half/fullwidth ASCII */ | |
- SetCharacterClassRange(0xff3b, 0xff40, IDENT); /* half/fullwidth ASCII */ | |
- SetCharacterClassRange(0xff5b, 0xff64, IDENT); /* half/fullwidth ASCII */ | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment