Touch up and rebase previous commits
* Added `// no-pretty-expanded` to pretty-print a test, but not run it through the `expanded` variant. * Removed #[deriving] and other expanded attributes after they are expanded * Removed hacks around &str and &&str and friends (from both the parser and the pretty printer). * Un-ignored a bunch of tests
This commit is contained in:
parent
ce8c467bd2
commit
1237530452
33 changed files with 85 additions and 95 deletions
|
@ -26,6 +26,7 @@ use t = syntax::parse::token;
|
|||
|
||||
/// Highlights some source code, returning the HTML output.
|
||||
pub fn highlight(src: &str, class: Option<&str>) -> StrBuf {
|
||||
debug!("highlighting: ================\n{}\n==============", src);
|
||||
let sess = parse::new_parse_sess();
|
||||
let fm = parse::string_to_filemap(&sess,
|
||||
src.to_strbuf(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue