It seems that PR #4320 does not always compute the proper language to use for syntax coloring.
It seems that PR #4320 does not always compute the proper language to use for syntax coloring.
It seems that PR #4320 does not always compute the proper language to use for syntax coloring.
On Wed, Apr 9, 2025 at 3:20 AM Viktor Ransmayr <viktor....@gmail.com> wrote:> I'm adding a test outline, which demonstrates the problem in a hopefully simple form....> only now has a colorization problem with @rst - nodesPlease explain what you think the problem is. I don't see any difference between devel and the PR.
On Fri, Apr 11, 2025 at 6:01 AM Viktor Ransmayr <viktor....@gmail.com> wrote:
...
Thanks for the clarification.
PR #4237 summarizes all changes between version 6.8.3 and Leo's 6.8.4 branch.
The changes you see in coloring are likely due to new settings in leoSettings.leo:
<v t="ekr.20250115101744.1"><vh>rest_comments (Python and Rust only)</vh>
<v t="ekr.20250115101744.2"><vh>@font rest.literal3</vh></v>
<v t="ekr.20250115101744.3"><vh>@font rest.literal4</vh></v>
<v t="ekr.20250115101744.4"><vh>@font rest.keyword5</vh></v>
<v t="ekr.20250115101744.5"><vh>@@@font rest_comments.literal1</vh></v>
<v t="ekr.20250115101744.6"><vh>@color rest_comments.literal1 = #d33682</vh></v>
<v t="ekr.20250115101744.7"><vh>@color rest_comments.literal2 = #d33682</vh></v>
<v t="ekr.20250115101744.8"><vh>@color rest_comments.literal3 = #d33682</vh></v>
<v t="ekr.20250115101744.9"><vh>@color rest_comments.literal4 = #d33682</vh></v>
<v t="ekr.20250115101744.10"><vh>@color rest.literal1 = #d33682</vh></v>
<v t="ekr.20250115101744.11"><vh>@color rest.literal2 = #d33682</vh></v>
<v t="ekr.20250115101744.12"><vh>@color rest.literal3 = #d33682</vh></v>
<v t="ekr.20250115101744.13"><vh>@color rest.literal4 = #d33682</vh></v>
<v t="ekr.20250115101744.14"><vh>@color rest.operator = #d33682</vh></v>
<v t="ekr.20250115101744.15"><vh>@@@color rest.keyword1 = #d33682</vh></v>
<v t="ekr.20250115101744.16"><vh>@color rest.keyword2 = #d33682</vh></v>
<v t="ekr.20250115101744.17"><vh>@color rest.keyword3 = #d33682</vh></v>
<v t="ekr.20250115101744.18"><vh>@color rest.keyword4 = #d33682</vh></v>
<v t="ekr.20250115101744.19"><vh>@color rest.keyword5 = #d33682</vh></v>You can test this theory by setting these colors to, say, 'red' in your myLeoSettings.leo.
On Fri, Apr 11, 2025 at 12:14 PM Viktor Ransmayr> PR #4237 summarizes all changes between version 6.8.3 and Leo's 6.8.4 branch.
> The changes you see in coloring are likely due to new settings in leoSettings.leo:> I tried to find "rest.literal" in 'leoSettings' outline of the 'devel' branch - but - failed :-(The valid settings are @color rest.literal1 through @color rest.literal4.Aha! You have found a compatibility bug! leoSettings defines two new settings as True:
@bool color-doc-parts-as-rest = True
@bool color-docstrings-as-rest = TrueBut these must have defaults of False to ensure legacy coloring does not change.Many thanks for pointing out this serious bug.PR #4328 sets both these settings to False. Please test and let me know your results.This PR is a draft. There may be more work to do. My tests don't show the same results as your screen shots, but that may be a result of different settings in my copy of myLeoSettings.leo.
Hello Edward,Edward K. Ream schrieb am Freitag, 11. April 2025 um 20:08:30 UTC+2:On Fri, Apr 11, 2025 at 12:14 PM Viktor Ransmayr> PR #4237 summarizes all changes between version 6.8.3 and Leo's 6.8.4 branch.
> The changes you see in coloring are likely due to new settings in leoSettings.leo:> I tried to find "rest.literal" in 'leoSettings' outline of the 'devel' branch - but - failed :-(The valid settings are @color rest.literal1 through @color rest.literal4.Aha! You have found a compatibility bug! leoSettings defines two new settings as True:
@bool color-doc-parts-as-rest = True
@bool color-docstrings-as-rest = TrueBut these must have defaults of False to ensure legacy coloring does not change.Many thanks for pointing out this serious bug.PR #4328 sets both these settings to False. Please test and let me know your results.This PR is a draft. There may be more work to do. My tests don't show the same results as your screen shots, but that may be a result of different settings in my copy of myLeoSettings.leo.The issue persists ! - For the moment I tried everything I could think of w/o success ...