Highlight type restrictions
jpellerin opened this issue · 3 comments
jpellerin commented
Highlight type restrictions
rocky commented
Is this still an issue? When I look at the first example in http://crystal-lang.org/docs/syntax_and_semantics/type_restrictions.html
def add(x : Number, y : Number)
x + y
end
Number is in a different font.
jpellerin commented
It sort of works by accident, because of the capitalization I think. There's no special support for giving the restriction in a different face. Or at least I don't remember adding any! But if it is working well enough as-is then I'm ok with closing this issue.
elthariel commented
Nah, I had a small look and as far as i understand elisp, there's no support for it in the parsers.
That's also a problem when you do
alias NewType = Int8*
class Test
def test
end
end