[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: etags regex for Lilypond & LY_DEFINE* tags
From: |
Jean Abou Samra |
Subject: |
Re: etags regex for Lilypond & LY_DEFINE* tags |
Date: |
Mon, 9 May 2022 23:10:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
Le 09/05/2022 à 22:56, John Wheeler a écrit :
Indeed, the second regex would add a tag for the Scheme function name
before Jean's change. Maybe it's worth considering reverting it?
If my merge request is accepted there will be no need to revert it.
Random idea: how about taking a difference approach and doing this
in LY_DEFINE instead? You can do something along the lines
of
scm_set_object_property_x (the_resulting_scm_procedure,
ly_symbol2scm ("c++-location"),
scm_cons (ly_string2scm (__FILE__), to_scm
(__LINE__)));
and then implement 'make tags' via 'out/bin/lilypond -ddump-tags',
where -ddump-tags is an option that iterates over the lily module
and outputs the tags file by reading the object property (somewhat
similar to the autogeneration of the Internals in
scm/document-functions.scm). That means this doesn't need to maintain
a duplicated version of the name mangling logic. Is the etags
format simple enough to write?
- Re: etags regex for Lilypond & LY_DEFINE* tags, (continued)
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/06
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jean Abou Samra, 2022/05/07
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jonas Hahnfeld, 2022/05/07
- Re: etags regex for Lilypond & LY_DEFINE* tags, David Kastrup, 2022/05/07
- Re: etags regex for Lilypond & LY_DEFINE* tags, David Kastrup, 2022/05/07
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/07
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jonas Hahnfeld, 2022/05/08
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/08
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jonas Hahnfeld, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags,
Jean Abou Samra <=
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, David Kastrup, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jean Abou Samra, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, John Wheeler, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, Jean Abou Samra, 2022/05/09
- Re: etags regex for Lilypond & LY_DEFINE* tags, Werner LEMBERG, 2022/05/07