use prism-tomorrow.css

This commit is contained in:
CyC2018
2018-12-19 14:09:39 +08:00
parent 0f00bcacaf
commit e9e604e6a7
1747 changed files with 100462 additions and 0 deletions

View File

@ -0,0 +1,49 @@
const ALL_CARDS: &'static [&'static char] = &["2"]
fn foo<'a> (first: &'a str, second: &'a str) => () { }
----------------------------------------------------
[
["keyword", "const"],
" ALL_CARDS",
["punctuation", ":"],
["operator", "&"],
["lifetime-annotation", "'static"],
["punctuation", "["],
["operator", "&"],
["lifetime-annotation", "'static"],
" char",
["punctuation", "]"],
["operator", "="],
["operator", "&"],
["punctuation", "["],
["string", "\"2\""],
["punctuation", "]"],
["keyword", "fn"],
" foo",
["operator", "<"],
["lifetime-annotation", "'a"],
["operator", ">"],
["punctuation", "("],
"first",
["punctuation", ":"],
["operator", "&"],
["lifetime-annotation", "'a"],
" str",
["punctuation", ","],
" second",
["punctuation", ":"],
["operator", "&"],
["lifetime-annotation", "'a"],
" str",
["punctuation", ")"],
["operator", "=>"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for lifetime annotations in real-world examples. See #1339.