diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/highlight.js/lib/languages/rust.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/rust.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/rust.js | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/node_modules/highlight.js/lib/languages/rust.js b/node_modules/highlight.js/lib/languages/rust.js deleted file mode 100644 index c4b0d1c56..000000000 --- a/node_modules/highlight.js/lib/languages/rust.js +++ /dev/null @@ -1,107 +0,0 @@ -module.exports = function(hljs) { - var NUM_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?'; - var KEYWORDS = - 'alignof as be box break const continue crate do else enum extern ' + - 'false fn for if impl in let loop match mod mut offsetof once priv ' + - 'proc pub pure ref return self Self sizeof static struct super trait true ' + - 'type typeof unsafe unsized use virtual while where yield move default'; - var BUILTINS = - // functions - 'drop ' + - // types - 'i8 i16 i32 i64 i128 isize ' + - 'u8 u16 u32 u64 u128 usize ' + - 'f32 f64 ' + - 'str char bool ' + - 'Box Option Result String Vec ' + - // traits - 'Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug ' + - 'PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator ' + - 'Extend IntoIterator DoubleEndedIterator ExactSizeIterator ' + - 'SliceConcatExt ToString ' + - // macros - 'assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! ' + - 'debug_assert! debug_assert_eq! env! panic! file! format! format_args! ' + - 'include_bin! include_str! line! local_data_key! module_path! ' + - 'option_env! print! println! select! stringify! try! unimplemented! ' + - 'unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!'; - return { - aliases: ['rs'], - keywords: { - keyword: - KEYWORDS, - literal: - 'true false Some None Ok Err', - built_in: - BUILTINS - }, - lexemes: hljs.IDENT_RE + '!?', - illegal: '</', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.COMMENT('/\\*', '\\*/', {contains: ['self']}), - hljs.inherit(hljs.QUOTE_STRING_MODE, {begin: /b?"/, illegal: null}), - { - className: 'string', - variants: [ - { begin: /r(#*)"(.|\n)*?"\1(?!#)/ }, - { begin: /b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/ } - ] - }, - { - className: 'symbol', - begin: /'[a-zA-Z_][a-zA-Z0-9_]*/ - }, - { - className: 'number', - variants: [ - { begin: '\\b0b([01_]+)' + NUM_SUFFIX }, - { begin: '\\b0o([0-7_]+)' + NUM_SUFFIX }, - { begin: '\\b0x([A-Fa-f0-9_]+)' + NUM_SUFFIX }, - { begin: '\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)' + - NUM_SUFFIX - } - ], - relevance: 0 - }, - { - className: 'function', - beginKeywords: 'fn', end: '(\\(|<)', excludeEnd: true, - contains: [hljs.UNDERSCORE_TITLE_MODE] - }, - { - className: 'meta', - begin: '#\\!?\\[', end: '\\]', - contains: [ - { - className: 'meta-string', - begin: /"/, end: /"/ - } - ] - }, - { - className: 'class', - beginKeywords: 'type', end: ';', - contains: [ - hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, {endsParent: true}) - ], - illegal: '\\S' - }, - { - className: 'class', - beginKeywords: 'trait enum struct union', end: '{', - contains: [ - hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, {endsParent: true}) - ], - illegal: '[\\w\\d]' - }, - { - begin: hljs.IDENT_RE + '::', - keywords: {built_in: BUILTINS} - }, - { - begin: '->' - } - ] - }; -};
\ No newline at end of file |