Add/fix README syntax highlighting

Adds the missing syntax mode for TOML, and fixes the Rust syntax highlighting syntax
This commit is contained in:
Alyssa Ross 2017-05-10 22:09:30 +01:00 committed by GitHub
parent 45eae6fd07
commit 900ab5d2ab

View file

@ -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: Add the following to the Cargo.toml of your project:
``` ```toml
[dependencies] [dependencies]
yaml-rust = "*" yaml-rust = "*"
``` ```
or or
``` ```toml
[dependencies.yaml-rust] [dependencies.yaml-rust]
git = "https://github.com/chyh1990/yaml-rust.git" git = "https://github.com/chyh1990/yaml-rust.git"
``` ```
and import using *extern crate*: and import using *extern crate*:
```.rust ```rust
extern crate yaml_rust; extern crate yaml_rust;
``` ```
Use `yaml::YamlLoader` to load the YAML documents and access it Use `yaml::YamlLoader` to load the YAML documents and access it
as Vec/HashMap: as Vec/HashMap:
```.rust ```rust
extern crate yaml_rust; extern crate yaml_rust;
use yaml_rust::{YamlLoader, YamlEmitter}; use yaml_rust::{YamlLoader, YamlEmitter};