Created
October 6, 2012 22:32
-
-
Save tav/3846383 to your computer and use it in GitHub Desktop.
Rust syntax highlighter for less via source-highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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