On Friday, July 21, 2017 at 2:15:06 PM UTC-5, vitalije wrote: Finally all derived files from Leo installation directory can be > successfully read by new Read code. See 6bc0bdba > <https://github.com/leo-editor/snippets/commit/6bc0bdba831d84bf1eeb53cd07a0d738a93765f2> > . > Vitalije >
Excellent work. get_pattern depends on hard-coded patterns for each kind of language delim. Eventually it should substitute beginning (and ending) comment delims into language-independent regex patterns. That will almost certainly require re.escape. See AbbrevCommands.make_script_substitutions_in_headline or find_function in edb.py. I suggest using r strings to eliminate double backslashes. It's looks like a nit, but it might interact with re.escape. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
