Skip to content

Commit

Permalink
don't allow U+0387 in identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored and JeffBezanson committed Jul 18, 2018
1 parent 76452ef commit a5ee0cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/flisp/julia_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ JL_DLLEXPORT int jl_id_char(uint32_t wc)
cat == UTF8PROC_CATEGORY_SK || cat == UTF8PROC_CATEGORY_ME ||
cat == UTF8PROC_CATEGORY_NO ||
// primes (single, double, triple, their reverses, and quadruple)
(wc >= 0x2032 && wc <= 0x2037) || (wc == 0x2057) ||
// Other_ID_Continue
wc == 0x0387 || wc == 0x19da || (wc >= 0x1369 && wc <= 0x1371))
(wc >= 0x2032 && wc <= 0x2037) || (wc == 0x2057))
return 1;
return 0;
}
Expand Down

0 comments on commit a5ee0cc

Please sign in to comment.