You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crystal supports the use of keywords as arguments in method definitions (by using an external argument name) and also fun declarations (by just using it, using an external argument name results in compile-error).
Unfortunately, this makes the syntax highlighting trip. Here the issue with method definitions:
deffoo(good : Bool, num : Int, alias s : String, propertyp : Symbol)
puts"alias = #{s}"puts"num = #{num}"puts"property = #{p}"end
foo good:true, num:5, alias:"bla", property::xyz
which looks like this on my machine:
And here the issue with fun declarations:
funzdir_resync(self : Void*, alias : LibC::Char*) : Void*# "LibC::Char*" has no colorfunzframe_meta(self : Void*, property : LibC::Char*) : LibC::Char*# "property" wrongly has a color
Here's how it looks in my:
I just noticed these seem to be correctly recognized by Github's higlighting.
My vi -v says NVIM v0.1.5-719-gf1eb303.
The text was updated successfully, but these errors were encountered:
Crystal supports the use of keywords as arguments in method definitions (by using an external argument name) and also
fun
declarations (by just using it, using an external argument name results in compile-error).Unfortunately, this makes the syntax highlighting trip. Here the issue with method definitions:
which looks like this on my machine:
And here the issue with
fun
declarations:Here's how it looks in my:
I just noticed these seem to be correctly recognized by Github's higlighting.
My
vi -v
saysNVIM v0.1.5-719-gf1eb303
.The text was updated successfully, but these errors were encountered: