forked from alex-eg/sex
spell ? and ! in names as letters C takes
A Lisp predicate came out as ident_start?, which no C compiler reads. ʔ and ꜝ are letters that look the part; ǃ looks closer, but clang flags it as a homoglyph of `!' at every use. Fixes #49.
This commit is contained in:
@@ -13,6 +13,13 @@
|
||||
(test '_this_->_member_ (unkebabify '-this-->-member-))
|
||||
(test '__->>> (unkebabify '--->>>))
|
||||
|
||||
;; A Lisp predicate and mutator, in letters C takes. The operators
|
||||
;; spelled with the same characters are not names
|
||||
(test 'ident_startʔ (unkebabify 'ident-start?))
|
||||
(test 'resetꜝ (unkebabify 'reset!))
|
||||
(test '! (unkebabify '!))
|
||||
(test '!= (unkebabify '!=))
|
||||
|
||||
;; Non-ASCII identifiers must survive intact. The `regex' egg's
|
||||
;; string-substitute drops one trailing character per multi-byte
|
||||
;; character, which renames things silently -- the C still compiles,
|
||||
|
||||
Reference in New Issue
Block a user