This add syntax support the Crystal Programming Language.
Crystal is a compiled language, allowing it to run fast with a very low memory footprint.
Crystal syntax is heavily inspired on Ruby, so it feels natural to read and easy to write.
This add syntax support the Crystal Programming Language.
Crystal is a compiled language, allowing it to run fast with a very low memory footprint.
Crystal syntax is heavily inspired on Ruby, so it feels natural to read and easy to write.
Review and add crystal.xml and hightlight.cr.* to current syntax-highlighting support.
Lint Skipped |
Unit Tests Skipped |
I'm user of Manjaro KDE and I love coding using Kate. Currently I'm focused in Crystal learning using Ruby syntax, however Ruby syntax doesn't support all Crystal features.
Sorry for the late reply.
Please do the following changes:
Also, is this language similar to other languages ? It seems it was copied from some other language, since it contains many authors.
Hi @dhaumann, I'm not an expert on kate editor, so this crystal syntax highlighting is based on ruby highlighting :-)
I'll remove hard-coded colors from itemDatas, What other change would you recommend?
The hard-coded colors got removed, test is there, all fine.
Thanks for the contribution!
If you can't push youself, tell me, I will push for you.
Great!, This is my first contribution to The KDE project, I'm very happy you accepted it! :)
Great!, This is my first contribution to The KDE project, I'm very happy you accepted it! :)
I assume that means I shall push?
:=)
Ah, I let just the build run once more locally, the current static check says:
"/local/cullmann/kf5/src/frameworks/syntax-highlighting/data/syntax/crystal.xml" Unused itemData: QSet("Region Marker", "Error", "Expression")
"/local/cullmann/kf5/src/frameworks/syntax-highlighting/data/syntax/crystal.xml" Unused contexts: QSet("Comment Line")
Could you take a short look why that is? Perhaps just some left-over parts?
And the auto-test does have diffs like:
-<span style="font-weight:bold;">class</span> <span style="color:#0057ae;">Markdown</span><span style="color:#ff9fec;">::</span><span style="color:#0057ae;">Parser</span>
+<span style="font-weight:bold;">class</span> <span style="color:#0057ae;">Markdown</span>::<span style="color:#0057ae;">Parser</span>
+ record <span style="color:#0057ae;">PrefixHeader</span>, count : <span style="color:#0057ae;">Int32</span>
+ record <span style="color:#0057ae;">UnorderedList</span>, char : <span style="color:#0057ae;">Char</span>
data/syntax/crystal.xml | ||
---|---|---|
37 | Section should be "Sources" |
Hi, did you get some time to look at the remaining issues?
If they are fixed, I am happy to merge that.
Hi, I haven't fixed the issues yet. I'm working on that, I will reply you again when the changes are ready :)