jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/javascript/function_feature.test
2016-02-03 18:00:01 -05:00

24 lines
706 B
Plaintext

foo()
foo_bar()
f42()
_()
$()
ಠ_ಠ()
Ƞȡ_҇()
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_bar"], ["punctuation", "("], ["punctuation", ")"],
["function", "f42"], ["punctuation", "("], ["punctuation", ")"],
["function", "_"], ["punctuation", "("], ["punctuation", ")"],
["function", "$"], ["punctuation", "("], ["punctuation", ")"],
["function", "ಠ_ಠ"], ["punctuation", "("], ["punctuation", ")"],
["function", "Ƞȡ_҇"], ["punctuation", "("], ["punctuation", ")"]
]
----------------------------------------------------
Checks for functions. Also checks for unicode characters in identifiers.