//! Built-in TextMate grammar sources. //! //! Available with the `syntaxes` feature. Each constant holds the raw grammar //! JSON for one language, ready to compile with `Grammar::from_str` or parse //! into a `RawGrammar`. /// C grammar source. pub const C: &str = include_str!("../syntaxes/c.json"); /// CSS grammar source. pub const CSS: &str = include_str!("../syntaxes/css.json"); /// ERB grammar source. pub const ERB: &str = include_str!("../syntaxes/erb.json"); /// Go grammar source. pub const GO: &str = include_str!("../syntaxes/go.json"); /// HTML grammar source. pub const HTML: &str = include_str!("../syntaxes/html.json"); /// JavaScript grammar source. pub const JAVASCRIPT: &str = include_str!("../syntaxes/javascript.json"); /// Fish grammar source. pub const FISH: &str = include_str!("../syntaxes/fish.json"); /// Lua grammar source. pub const LUA: &str = include_str!("../syntaxes/lua.json"); /// Makefile grammar source. pub const MAKE: &str = include_str!("../syntaxes/make.json"); /// Markdown grammar source. pub const MARKDOWN: &str = include_str!("../syntaxes/markdown.json"); /// Python grammar source. pub const PYTHON: &str = include_str!("../syntaxes/python.json"); /// Ruby grammar source. pub const RUBY: &str = include_str!("../syntaxes/ruby.json"); /// Radiance grammar source. pub const RADIANCE: &str = include_str!("../syntaxes/radiance.json"); /// Radiance IL grammar source. pub const RIL: &str = include_str!("../syntaxes/ril.json"); /// Rust grammar source. pub const RUST: &str = include_str!("../syntaxes/rust.json"); /// Shell grammar source. pub const SHELL: &str = include_str!("../syntaxes/shellscript.json"); /// SQL grammar source. pub const SQL: &str = include_str!("../syntaxes/sql.json"); /// TOML grammar source. pub const TOML: &str = include_str!("../syntaxes/toml.json"); /// TypeScript grammar source. pub const TYPESCRIPT: &str = include_str!("../syntaxes/typescript.json"); /// TSX grammar source. pub const TSX: &str = include_str!("../syntaxes/tsx.json"); /// XML grammar source. pub const XML: &str = include_str!("../syntaxes/xml.json"); /// YAML grammar source. pub const YAML: &str = include_str!("../syntaxes/yaml.json");