This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/julia/test_unicode.txt
2022-01-06 18:34:29 +01:00

37 lines
961 B
Text

# Test that unicode character, √, in an expression is recognized
---input---
s = √((1/n) * sum(count .^ 2) - mu .^2)
---tokens---
's' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'√' Operator
'(' Punctuation
'(' Punctuation
'1' Literal.Number.Integer
'/' Operator
'n' Name
')' Punctuation
' ' Text.Whitespace
'*' Operator
' ' Text.Whitespace
'sum' Name
'(' Punctuation
'count' Name
' ' Text.Whitespace
'.^' Operator
' ' Text.Whitespace
'2' Literal.Number.Integer
')' Punctuation
' ' Text.Whitespace
'-' Operator
' ' Text.Whitespace
'mu' Name
' ' Text.Whitespace
'.^' Operator
'2' Literal.Number.Integer
')' Punctuation
'\n' Text.Whitespace