Add a bunch of clippings!

This commit is contained in:
Ben S
2015-07-15 15:14:26 +01:00
parent d8fd3d0bd1
commit eb06c53efc
11 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1 @@
println!("{:?}", #placeholderstart##placeholderend#);

View File

@@ -0,0 +1 @@
#[derive(#placeholderstart#...#placeholderend#)]

View File

@@ -0,0 +1,3 @@
#indent#fn main() {
#placeholderstart#...#placeholderend#
}

View File

@@ -0,0 +1,6 @@
#INDENT#let stdin = io::stdin();
for line in stdin.lock().lines() {
let line = line.unwrap();
#PLACEHOLDERSTART#...#PLACEHOLDEREND#
}

View File

@@ -0,0 +1,4 @@
\#[test]
#indent#fn #placeholderstart#test#placeholderend#() {
#placeholderstart#...#placeholderend#
}

View File

@@ -0,0 +1,8 @@
#indent#macro_rules! #placeholderstart#name#placeholderend# {
($name: ident: $input: expr => $result: expr) => {
#[test]
fn $name() {
assert_eq!($input, $result)
}
};
}

View File

@@ -0,0 +1,9 @@
#indent#\#[cfg(test)]
mod test {
use super::*;
\#[test]
fn #placeholderstart#test#placeholderend#() {
#placeholderstart#...#placeholderend#
}
}

View File

@@ -0,0 +1,3 @@
#indent#if let Some(#placeholderstart#variable#placeholderend#) = #placeholderstart#...#placeholderend# {
#placeholderstart#...#placeholderend#
}

View File

@@ -0,0 +1,4 @@
#indent#match #placeholderstart#...#placeholderend# {
Some(#placeholderstart#...#placeholderend#) => #placeholderstart#...#placeholderend#,
None => #placeholderstart#...#placeholderend#,
}

View File

@@ -0,0 +1,4 @@
#indent#match #placeholderstart#...#placeholderend# {
Ok(#placeholderstart#...#placeholderend#) => #placeholderstart#...#placeholderend#,
Err(#placeholderstart#...#placeholderend#) => #placeholderstart#...#placeholderend#,
}

View File

@@ -13,6 +13,7 @@ This is a BBEdit 11 Package for [Rust](http://www.rust-lang.org). It provides th
- Go to named symbol - Go to named symbol
- Indexed function menu - Indexed function menu
- Code folding - Code folding
- Clippings
By default, it highlights anything beginning with a capital letter in a certain colour. To turn this off, just change the Identifier colour to be the same as the default text colour in Preferences. By default, it highlights anything beginning with a capital letter in a certain colour. To turn this off, just change the Identifier colour to be the same as the default text colour in Preferences.