<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/AndiMD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AndiMD">@AndiMD</a> Thanks for reporting these problems! I think it would be great to announce it on Julia discourse.</p>
<blockquote>
<pre><code>1. Highlighting interpolated strings seems inconsistent: Depending on using `$(var)` vs `$var` and single quote vs triple quote strings, I see different results. Example:
   `"($scanPosX,$scanPosY): (k±Δk)=$(kLaserApprox) $(begin x+5 end)"`
   `"""($scanPosX,$scanPosY): (k±Δk)=$(kLaserApprox)  $(begin x+5 end)"""`
</code></pre>
</blockquote>
<p>Interpolation highlighting is only done for single-quote strings, but I am planning to allow it in triple-quote and commands also.<br>
For <code>$(var)</code> vs <code>$var</code>, I didn't find a way to highlight <code>$(</code> in the former so I ended up highlighting only what is inside the parenthesis. Because in the latter case there are no parenthesis, nothing is highlighted. I can try to find a way to highlight both, including the <code>$</code>.</p>
<blockquote>
<pre><code>2. Macros confuse the lexer (possibly we have to live with that, since macros can have arbitrary syntax)
   Example:
</code></pre>
<p>Base.@kwdef struct A<br>
a::Float64 = 1E-19<br>
b::Float64 = 1E-22<br>
end</p>
<pre><code>
</code></pre>
</blockquote>
<p>Thanks for reporting, that are actually two bugs:</p>
<ul>
<li>defined values for the attributes are not parsed at all</li>
<li><code>Base.@kwdef</code> is not recognized as a macro (<code>@kwdef</code> is well recognized):</li>
</ul>
<div class="highlight highlight-source-julia"><pre><span class="pl-c1">@eval</span> <span class="pl-en">fun1</span>(x) <span class="pl-k">=</span> <span class="pl-k">$</span>pi        <span class="pl-c"><span class="pl-c">#</span> recognizes `fun1` short function definition</span>
Base<span class="pl-k">.</span><span class="pl-c1">@eval</span> <span class="pl-en">fun1</span>(x) <span class="pl-k">=</span> <span class="pl-k">$</span>pi   <span class="pl-c"><span class="pl-c">#</span> does not recognize `fun1` short function definition</span></pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2584#issuecomment-752967802">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4PUTC5H3LOR3S6HR3SXSAZHANCNFSM4RIBU6VA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2ILUVWR2QBETS76ULSXSAZHA5CNFSM4RIBU6VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFTQWA6Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2584#issuecomment-752967802",
"url": "https://github.com/geany/geany/pull/2584#issuecomment-752967802",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>