Use phase(plugin) in other crates
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! #![feature(phase)]
|
||||
//! #[phase(syntax)]
|
||||
//! #[phase(plugin)]
|
||||
//! extern crate regex_macros;
|
||||
//! extern crate regex;
|
||||
//!
|
||||
@@ -95,7 +95,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(phase)]
|
||||
//! # extern crate regex; #[phase(syntax)] extern crate regex_macros;
|
||||
//! # extern crate regex; #[phase(plugin)] extern crate regex_macros;
|
||||
//! # fn main() {
|
||||
//! let re = regex!(r"(\d{4})-(\d{2})-(\d{2})");
|
||||
//! let text = "2012-03-14, 2013-01-01 and 2014-07-05";
|
||||
@@ -121,7 +121,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(phase)]
|
||||
//! # extern crate regex; #[phase(syntax)] extern crate regex_macros;
|
||||
//! # extern crate regex; #[phase(plugin)] extern crate regex_macros;
|
||||
//! # fn main() {
|
||||
//! let re = regex!(r"(?P<y>\d{4})-(?P<m>\d{2})-(?P<d>\d{2})");
|
||||
//! let before = "2012-03-14, 2013-01-01 and 2014-07-05";
|
||||
@@ -168,7 +168,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(phase)]
|
||||
//! # extern crate regex; #[phase(syntax)] extern crate regex_macros;
|
||||
//! # extern crate regex; #[phase(plugin)] extern crate regex_macros;
|
||||
//! # fn main() {
|
||||
//! let re = regex!(r"(?i)Δ+");
|
||||
//! assert_eq!(re.find("ΔδΔ"), Some((0, 6)));
|
||||
@@ -181,7 +181,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(phase)]
|
||||
//! # extern crate regex; #[phase(syntax)] extern crate regex_macros;
|
||||
//! # extern crate regex; #[phase(plugin)] extern crate regex_macros;
|
||||
//! # fn main() {
|
||||
//! let re = regex!(r"[\pN\p{Greek}\p{Cherokee}]+");
|
||||
//! assert_eq!(re.find("abcΔᎠβⅠᏴγδⅡxyz"), Some((3, 23)));
|
||||
@@ -278,7 +278,7 @@
|
||||
//!
|
||||
//! ```rust
|
||||
//! # #![feature(phase)]
|
||||
//! # extern crate regex; #[phase(syntax)] extern crate regex_macros;
|
||||
//! # extern crate regex; #[phase(plugin)] extern crate regex_macros;
|
||||
//! # fn main() {
|
||||
//! let re = regex!(r"(?i)a+(?-i)b+");
|
||||
//! let cap = re.captures("AaAaAbbBBBb").unwrap();
|
||||
|
||||
Reference in New Issue
Block a user