| Server IP : 172.67.191.97 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/source-highlight/ |
Upload File : |
# Rust
environment comment start "//" begin
include "url.lang"
include "todo.lang"
end
# Strings.
string delim `(?<!r)b?\"` "\"" escape "\\"
string delim `b?r(#*)\"` "\"" + @{1} multiline
vardef common_escape = `(?:[\\nrt0']|x[a-fA-F0-9]{2})`
vardef unicode_escape = `u\{[a-fA-F0-9]{6}\}`
string = `b?'(?:[^\\']|\\(?:` + $common_escape + `|` + $unicode_escape + `))'`
# Not exactly Rust syntax.
include "number.lang"
# Reserved keywords aren't listed.
keyword = "as|box|break|const|continue|crate|else|enum|extern",
"false|fn|for|if|impl|in|let|loop",
"match|mod|move|mut|pub|ref|return",
"self|static|struct|super|trait|true|type",
"union|unsafe|use|where|while"
type = "i8|u8|i16|u16|i32|u32|i64|u64|i128|u128|isize|usize",
"bool|char|Self|f32|f64|&str"
include "symbols.lang"
cbracket = "{|}"
include "function.lang"