<commit_before>" Vim syntax file
" Language:     Rust
" Maintainer:   <NAME> <<EMAIL>>
" Last Change:  2010 Oct 13

" Quit when a syntax file was already loaded
if !exists("main_syntax")
  if version < 600
    syntax clear
  elseif exists("b:current_syntax")
    finish
  endif
  " we define it here so that included files can test for it
  let main_syntax='rust'
endif

syn keyword   rustKeyword     alt as assert be bind break
syn keyword   rustKeyword     check claim cont const copy do else enum export fail
syn keyword   rustKeyword     fn for if iface impl import in inline lambda let log
syn keyword   rustKeyword     mod mutable native note of prove pure
syn keyword   rustKeyword     resource ret self syntax type unchecked
syn keyword   rustKeyword     unsafe use while with

" Reserved words
syn keyword   rustKeyword     m32 m64 m128 f80 f16 f128 class trait

syn keyword   rustType        any int uint float char bool u8 u16 u32 u64 f32
syn keyword   rustType        f64 i8 i16 i32 i64 str

syn keyword   rustBoolean     true false

syn match     rustItemPath    "\(\w\|::\)\+"

syn region	  rustString      start=+L\="+ skip=+\\\\\|\\"+ end=+"+

"integer number, or floating point number without a dot and with "f".
syn case ignore
syn match	  rustNumber		display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
"hex number
syn match	  rustNumber		display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
syn match	rustFloat		display contained "\d\+f"
"floating point number, with dot, optional exponent
syn match	rustFloat		display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
"floating point number, starting with a dot, optional exponent
syn match	rustFloat		display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"<commit_msg>vim: add "to" as a keyword.<commit_after>" Vim syntax file
" Language:     Rust
" Maintainer:   <NAME> <<EMAIL>>
" Last Change:  2010 Oct 13

" Quit when a syntax file was already loaded
if !exists("main_syntax")
  if version < 600
    syntax clear
  elseif exists("b:current_syntax")
    finish
  endif
  " we define it here so that included files can test for it
  let main_syntax='rust'
endif

syn keyword   rustKeyword     alt as assert be bind break
syn keyword   rustKeyword     check claim cont const copy do else enum export fail
syn keyword   rustKeyword     fn for if iface impl import in inline lambda let log
syn keyword   rustKeyword     mod mut mutable native note of prove pure
syn keyword   rustKeyword     resource ret self syntax to type unchecked
syn keyword   rustKeyword     unsafe use while with

" Reserved words
syn keyword   rustKeyword     m32 m64 m128 f80 f16 f128 class trait

syn keyword   rustType        any int uint float char bool u8 u16 u32 u64 f32
syn keyword   rustType        f64 i8 i16 i32 i64 str

syn keyword   rustBoolean     true false

syn match     rustItemPath    "\(\w\|::\)\+"

syn region	  rustString      start=+L\="+ skip=+\\\\\|\\"+ end=+"+

"integer number, or floating point number without a dot and with "f".
syn case ignore
syn match	  rustNumber		display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
"hex number
syn match	  rustNumber		display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
syn match	rustFloat		display contained "\d\+f"
"floating point number, with dot, optional exponent
syn match	rustFloat		display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
"floating point number, starting with a dot, optional exponent
syn match	rustFloat		display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
{'fraction_non_alphanumeric': 0.10665897953300663, 'fraction_numerical': 0.026520611127125972, 'mean_word_length': 3.1656662665066024, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4093058', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1072, 'n_words': 454}