[ruby-core:113907] [Ruby master Bug#19728] Automate (checking of) Regexp character property documentation
From:
janosch-x via ruby-core <ruby-core@...>
Date:
2023-06-14 16:29:28 UTC
List:
ruby-core #113907
Issue #19728 has been updated by janosch-x (Janosch M=FCller). I found that `enc-unicode.rb` deals with some inconsistent unicode data (i.= e. some data which uses short property names and some data which uses long = names), so it doesn't provide much useful context. I've made a PR to create= documentation from the result instead: https://github.com/ruby/ruby/pull/7= 944 ---------------------------------------- Bug #19728: Automate (checking of) Regexp character property documentation https://bugs.ruby-lang.org/issues/19728#change-103559 * Author: duerst (Martin D=FCrst) * Status: Open * Priority: Normal * Assignee: duerst (Martin D=FCrst) * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- This came up in a discussion at https://github.com/ruby/ruby/pull/7923. The documentation at doc/regexp.rdoc currently contains a list of character= properties that can be used in regular expressions. But there is no guaran= tee that this list is updated when the Unicode version is updated. One idea is to create a ruby equivalent of https://github.com/k-takata/Onig= mo/blob/master/tool/update-doc.py. Another idea is to just write a test tha= t checks enc/unicode/$UNICODE_VERSION/name2ctype.h against the relevant par= t of the documentation file. This might make it easier for the documentatio= n to be rewritten while guaranteeing that no properties get forgotten. --=20 https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-c= ore.ml.ruby-lang.org/