Skip to content

Commit

Permalink
Merge pull request #130 from trishume/bump-2.0
Browse files Browse the repository at this point in the history
Bump to v2.0.0 with cleanup
  • Loading branch information
trishume authored Jan 2, 2018
2 parents 5934b0c + 3d7e466 commit 53a251d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["syntax", "highlighting", "highlighter", "colouring", "parsing"]
categories = ["parser-implementations", "parsing", "text-processing"]
readme = "Readme.md"
license = "MIT"
version = "1.8.2" # remember to update html_root_url
version = "2.0.0" # remember to update html_root_url
authors = ["Tristan Hume <[email protected]>"]
exclude = [
"testdata/*",
Expand Down
13 changes: 0 additions & 13 deletions src/highlighting/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ pub struct StyleModifier {
pub font_style: Option<FontStyle>,
}

#[deprecated(since = "1.8.0", note = "use Color::BLACK instead")]
pub const BLACK: Color = Color::BLACK;

#[deprecated(since = "1.8.0", note = "use Color::WHITE instead")]
pub const WHITE: Color = Color::WHITE;

/// RGBA colour, these numbers come directly from the theme so
/// for now you might have to do your own colour space conversion if you are outputting
/// a different colour space from the theme. This can be a problem because some Sublime
Expand All @@ -45,13 +39,6 @@ pub struct Color {
pub a: u8,
}

#[deprecated(since = "1.8.0", note = "use FontStyle::BOLD instead")]
pub const FONT_STYLE_BOLD: FontStyle = FontStyle::BOLD;
#[deprecated(since = "1.8.0", note = "use FontStyle::UNDERLINE instead")]
pub const FONT_STYLE_UNDERLINE: FontStyle = FontStyle::UNDERLINE;
#[deprecated(since = "1.8.0", note = "use FontStyle::ITALIC instead")]
pub const FONT_STYLE_ITALIC: FontStyle = FontStyle::ITALIC;

bitflags! {
/// This can be a combination of `BOLD`, `UNDERLINE` and `ITALIC`
#[derive(Serialize, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//! Some docs have example code but a good place to look is the `syncat` example as well as the source code
//! for the `easy` module in `easy.rs` as that shows how to plug the various parts together for common use cases.
#![doc(html_root_url = "https://docs.rs/syntect/1.8.2")]
#![doc(html_root_url = "https://docs.rs/syntect/2.0.0")]

#[cfg(feature = "yaml-load")]
extern crate yaml_rust;
Expand Down
4 changes: 4 additions & 0 deletions src/parsing/syntax_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ use std::fs::File;
use std::ops::DerefMut;
use std::mem;
use std::rc::Rc;

// TODO this is unused in nightly but used in stable, remove eventually
#[allow(unused_imports)]
use std::ascii::AsciiExt;

use std::sync::Mutex;
use onig::Regex;

Expand Down
2 changes: 2 additions & 0 deletions src/parsing/yaml_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ __main:
impl SyntaxDefinition {
/// In case you want to create your own SyntaxDefinition's in memory from strings.
/// Generally you should use a `SyntaxSet`
///
/// `fallback_name` is an optional name to use when the YAML doesn't provide a `name` key.
pub fn load_from_str(s: &str,
lines_include_newline: bool,
fallback_name: Option<&str>)
Expand Down

0 comments on commit 53a251d

Please sign in to comment.