]> git.eshelyaron.com Git - emacs.git/commit
Use 'ucs-names' for character name escapes
authorPhilipp Stephani <phst@google.com>
Thu, 21 Apr 2016 21:51:30 +0000 (14:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Apr 2016 02:29:40 +0000 (19:29 -0700)
commite7cb38edc946ff60c1c878b30b068376d6ef56d2
tree8fc810e91650a328dd6f6d95dd2a5f1f52b86c4a
parent753c875714f708c0257a2d352635c5616be66fdc
Use 'ucs-names' for character name escapes

* lread.c (invalid_character_name, check_scalar_value)
(parse_code_after_prefix, character_name_to_code): New helper
functions that use 'ucs-names' and parsing for CJK ideographs.
(read_escape): Use helper functions.
(syms_of_lread): New symbol 'ucs-names'.
* test/src/lread-tests.el: New tests; fix a couple of bugs in
existing tests.
src/lread.c
test/src/lread-tests.el