1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00
chroma/lexers/testdata/java.expected
2023-10-26 20:34:50 +11:00

219 lines
9.4 KiB
Plaintext

[
{"type":"KeywordNamespace","value":"package"},
{"type":"TextWhitespace","value":" "},
{"type":"NameNamespace","value":"example"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"KeywordNamespace","value":"import"},
{"type":"TextWhitespace","value":" "},
{"type":"NameNamespace","value":"com.oracle.svm.core.annotate.Alias"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordNamespace","value":"import"},
{"type":"TextWhitespace","value":" "},
{"type":"NameNamespace","value":"com.oracle.svm.core.annotate.RecomputeFieldValue"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordNamespace","value":"import"},
{"type":"TextWhitespace","value":" "},
{"type":"NameNamespace","value":"com.oracle.svm.core.annotate.Targetclass"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"NameDecorator","value":"@TargetClass"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"className"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralString","value":"\"io.netty.util.internal.cleanerJava6\""},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"final"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"class"},
{"type":"Text","value":" "},
{"type":"NameClass","value":"TargetCleanerJava6"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@Alias"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@RecomputeFieldValue"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"kind"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"RecomputeFieldValue"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"Kind"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"Fieldoffset"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"declClassName"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralString","value":"\"java.nio.DirectBy\""},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n "},
{"type":"KeywordDeclaration","value":"private"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"static"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordType","value":"long"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"CLEANER_FIELD_OFFSET"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"NameDecorator","value":"@TargetClass"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"className"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralString","value":"\"io.netty.util.internal.PlatformDependent0\""},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"final"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"class"},
{"type":"Text","value":" "},
{"type":"NameClass","value":"TargetPlatformDependent0"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@Alias"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@RecomputeFieldValue"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"kind"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"RecomputeFieldValue"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"Kind"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"Fieldoffset"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"declClassName"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralString","value":"\"java.nio.Buffer\""},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"rest"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"LiteralString","value":"\"IDK\""},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n "},
{"type":"KeywordDeclaration","value":"private"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"static"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordType","value":"long"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ADDRESS_FIELD_OFFSET"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n\n"},
{"type":"NameDecorator","value":"@TargetClass"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"io"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"netty"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"util"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"internal"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"shaded"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"org"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"jctools"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"util"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"UnsafeRefArrayAccess"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"class"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n"},
{"type":"KeywordDeclaration","value":"final"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"class"},
{"type":"Text","value":" "},
{"type":"NameClass","value":"TargetUnsafeRefArrayAccess"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@Alias"},
{"type":"TextWhitespace","value":"\n "},
{"type":"NameDecorator","value":"@RecomputeFieldValue"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"kind"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"RecomputeFieldValue"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"Kind"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"ArrayIndexShift"},
{"type":"Punctuation","value":","},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"declClass"},
{"type":"TextWhitespace","value":" "},
{"type":"Operator","value":"="},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"Object"},
{"type":"Operator","value":"[]"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"class"},
{"type":"Punctuation","value":")"},
{"type":"TextWhitespace","value":"\n "},
{"type":"KeywordDeclaration","value":"public"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"static"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordType","value":"int"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"REF_ELEMENT_SHIFT"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n\n "},
{"type":"KeywordDeclaration","value":"public"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordDeclaration","value":"static"},
{"type":"TextWhitespace","value":" "},
{"type":"KeywordType","value":"void"},
{"type":"TextWhitespace","value":" "},
{"type":"NameFunction","value":"test"},
{"type":"Punctuation","value":"()"},
{"type":"TextWhitespace","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Name","value":"System"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"out"},
{"type":"Punctuation","value":"."},
{"type":"NameAttribute","value":"println"},
{"type":"Punctuation","value":"("},
{"type":"LiteralString","value":"\"\"\"\n Hello, world!\n This is a multi-line string!\n It can also contain \"quotes\" and 'apostrophes' without breaking.\n We only need to escape \\\"\"\" inside it.\n \"\"\""},
{"type":"Punctuation","value":");"},
{"type":"TextWhitespace","value":"\n "},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"TextWhitespace","value":"\n"}
]