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:
2026-10-09 16:01:32 +03:00
parent df3aa1789c
commit d5b003ef91
3 changed files with 30 additions and 6 deletions

View File

@@ -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,