Skip to content

Instantly share code, notes, and snippets.

@tav
Created October 6, 2012 22:32
Show Gist options
  • Save tav/3846383 to your computer and use it in GitHub Desktop.
Save tav/3846383 to your computer and use it in GitHub Desktop.
Rust syntax highlighter for less via source-highlight
preproc = "import","package"
include "c_comment.lang"
include "number.lang"
string delim "\"" "\"" escape "\\"
string delim "'" "'" escape "\\"
string delim "`" "`" escape "\\" multiline
keyword = "as|assert|break|const|copy|do|drop|else|enum|export|extern|fail|false|fn|for|if|impl|let|log|loop|match|mod|move|mut|priv|pub|pure|ref|return|struct|true|trait|type|unsafe|use|while"
keyword = "be|self|static|export|assert|log|fail"
type = "bool|char|f32|f64|float|i8|i16|i32|i64|int|str|u8|u16|u32|u64|uint"
include "symbols.lang"
cbracket = "{|}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment