jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/javascript/function_feature.test

24 lines
706 B
Plaintext
Raw Normal View History

2016-02-03 16:00:01 -07:00
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.