jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/clike/class-name_feature.test

53 lines
732 B
Plaintext
Raw Normal View History

2016-02-03 16:00:01 -07:00
class Foo
interface bar
extends Foo
implements bar
trait Foo
instanceof \bar
new \Foo
catch (bar)
----------------------------------------------------
[
"class ",
["class-name", [
"Foo"
]],
"\r\ninterface ",
["class-name", [
"bar"
]],
"\r\nextends ",
["class-name", [
"Foo"
]],
"\r\nimplements ",
["class-name", [
"bar"
]],
"\r\ntrait ",
["class-name", [
"Foo"
]],
["keyword", "instanceof"],
["class-name", [
["punctuation", "\\"],
"bar"
]],
["keyword", "new"],
["class-name", [
["punctuation", "\\"],
"Foo"
]],
["keyword", "catch"],
["punctuation", "("],
["class-name", [
"bar"
]],
["punctuation", ")"]
]
----------------------------------------------------
Checks for class names.