Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Pygments / tests / snippets / scala / test_default_parameter.txt
Size: Mime:
---input---
def f(using y: Char = if true then 'a' else 2): Int = ???

---tokens---
'def'         Keyword
' '           Text.Whitespace
'f'           Name.Function
'('           Punctuation
'using'       Keyword
' '           Text.Whitespace
'y'           Name
':'           Punctuation
' '           Text.Whitespace
'Char'        Name.Class
' '           Text.Whitespace
'='           Operator
' '           Text.Whitespace
'if'          Keyword
' '           Text.Whitespace
'true'        Keyword.Constant
' '           Text.Whitespace
'then'        Keyword
' '           Text.Whitespace
"'a'"         Literal.String.Char
' '           Text.Whitespace
'else'        Keyword
' '           Text.Whitespace
'2'           Literal.Number.Integer
')'           Punctuation
':'           Punctuation
' '           Text.Whitespace
'Int'         Name.Class
' '           Text.Whitespace
'='           Operator
' '           Text.Whitespace
'???'         Operator
'\n'          Text.Whitespace