From 960ee4385f920539ff057a52754565ffdf34ae42 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 10 May 2017 22:09:30 +0100 Subject: [PATCH] Add/fix README syntax highlighting Adds the missing syntax mode for TOML, and fixes the Rust syntax highlighting syntax --- parser/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/README.md b/parser/README.md index 0cfca8d..6a334df 100644 --- a/parser/README.md +++ b/parser/README.md @@ -26,28 +26,28 @@ See [Document](http://chyh1990.github.io/yaml-rust/doc/yaml_rust/) Add the following to the Cargo.toml of your project: -``` +```toml [dependencies] yaml-rust = "*" ``` or -``` +```toml [dependencies.yaml-rust] git = "https://github.com/chyh1990/yaml-rust.git" ``` and import using *extern crate*: -```.rust +```rust extern crate yaml_rust; ``` Use `yaml::YamlLoader` to load the YAML documents and access it as Vec/HashMap: -```.rust +```rust extern crate yaml_rust; use yaml_rust::{YamlLoader, YamlEmitter};