<commit_before>"hoon.vim: Hoon syntax file
"Credit goes to Fode
"


if exists("b:current_syntax")
  finish
endif

syn case match


" comments
" Declerations
hi def link     hoonDeclaration   Define 
hi def link     hoonSymbol        Constant 
hi def link     hoonAtom          Keyword
hi def link     hoonRune          Keyword
hi def link     hoonBranch        Conditional
hi def link     hoonType          Type
hi def link     hoonName          Constant

syn match       hoonDeclaration   "++" nextgroup=hoonSymbolDec skipwhite 
syn match       hoonBranch        /?[^\w\s]/ 
syn match       hoonSymbol        /%\w*/
syn keyword     hoonAtom          @
syn match       hoonName          "\w*" contained
syn match       hoonSymbolDec     "\w*" contained contains=hoonName

" strings

hi def link     hoonComment       Comment

syn region      hoonComment       start="::" end="$" contains=@spell<commit_msg>Added runes to be highlighted.<commit_after>"hoon.vim: Hoon syntax file
"Credit goes to Fode
"


if exists("b:current_syntax")
  finish
endif

syn case match


" comments
" Declerations
hi def link     hoonDeclaration   Define 
hi def link     hoonSymbol        Constant 
hi def link     hoonAtom          Keyword
hi def link     hoonRune          Keyword
hi def link     hoonBranch        Conditional
hi def link     hoonType          Type
hi def link     hoonName          Constant

syn match       hoonRune "||"
syn match       hoonRune "|_"
syn match       hoonRune "|%"
syn match       hoonRune "|:"
syn match       hoonRune "|\."
syn match       hoonRune "|-"
syn match       hoonRune "|\^"
syn match       hoonRune "|+"
syn match       hoonRune "|\*"
syn match       hoonRune "|="
syn match       hoonRune "|?"
syn match       hoonRune "%_"
syn match       hoonRune "%:"
syn match       hoonRune "%\."
syn match       hoonRune "%\^"
syn match       hoonRune "%+"
syn match       hoonRune "%-"
syn match       hoonRune "%\~"
syn match       hoonRune "%\*"
syn match       hoonRune "%="
syn match       hoonRune "\$|"
syn match       hoonRune "\$_"
syn match       hoonRune "\$:"
syn match       hoonRune "\$%"
syn match       hoonRune "\$,"
syn match       hoonRune "\$&"
syn match       hoonRune "\$?"
syn match       hoonRune ":_"
syn match       hoonRune ":\~"
syn match       hoonRune ":/"
syn match       hoonRune ":\^"
syn match       hoonRune ":+"
syn match       hoonRune ":-"
syn match       hoonRune ":\~"
syn match       hoonRune ":\*"
syn match       hoonRune "\.+"
syn match       hoonRune "\.\*"
syn match       hoonRune "\.="
syn match       hoonRune "\.?"
syn match       hoonRune "\.\^"
syn match       hoonRune "#<"
syn match       hoonRune "#>"
syn match       hoonRune "\^|"
syn match       hoonRune "\^\."
syn match       hoonRune "\^-"
syn match       hoonRune "\^+"
syn match       hoonRune "\^&"
syn match       hoonRune "\^\~"
syn match       hoonRune "\^="
syn match       hoonRune "\^?"
syn match       hoonRune "\~|"
syn match       hoonRune "\~\$"
syn match       hoonRune "\~%"
syn match       hoonRune "\~:"
syn match       hoonRune "\~/"
syn match       hoonRune "\~<"
syn match       hoonRune "\~>"
syn match       hoonRune "\~#"
syn match       hoonRune "\~\^"
syn match       hoonRune "\~+"
syn match       hoonRune "\~&"
syn match       hoonRune "\~="
syn match       hoonRune "\~!"
syn match       hoonRune ";_"
syn match       hoonRune ";,"
syn match       hoonRune ";%"
syn match       hoonRune ";:"
syn match       hoonRune ";\."
syn match       hoonRune ";<"
syn match       hoonRune ";>"
syn match       hoonRune ";-"
syn match       hoonRune ";+"
syn match       hoonRune ";&"
syn match       hoonRune ";\~"
syn match       hoonRune ";;"
syn match       hoonRune ";\*"
syn match       hoonRune ";="
syn match       hoonRune ";?"
syn match       hoonRune "=|"
syn match       hoonRune "=\."
syn match       hoonRune "=\^"
syn match       hoonRune "=:"
syn match       hoonRune "=<"
syn match       hoonRune "=>"
syn match       hoonRune "=-"
syn match       hoonRune "=+"
syn match       hoonRune "=\~"
syn match       hoonRune "?|"
syn match       hoonRune "?:"
syn match       hoonRune "?\."
syn match       hoonRune "?<"
syn match       hoonRune "?>"
syn match       hoonRune "?-"
syn match       hoonRune "?\^"
syn match       hoonRune "?="
syn match       hoonRune "?+"
syn match       hoonRune "?&"
syn match       hoonRune "?@"
syn match       hoonRune "?\~"
syn match       hoonRune "?!"
syn match       hoonRune "!:"
syn match       hoonRune "!,"
syn match       hoonRune "!;"
syn match       hoonRune "!\^"
syn match       hoonRune "!>"
syn match       hoonRune "!="

syn match       hoonDeclaration   "++" nextgroup=hoonSymbolDec skipwhite 
syn match       hoonBranch        /?[^\w\s]/ 
syn match       hoonSymbol        /%\w*/
syn keyword     hoonAtom          @
syn match       hoonName          "\w*" contained
syn match       hoonSymbolDec     "\w*" contained contains=hoonName

" strings

hi def link     hoonComment       Comment

syn region      hoonComment       start="::" end="$" contains=@spell
{'fraction_non_alphanumeric': 0.11637080867850098, 'fraction_numerical': 0.0, 'mean_word_length': 1.9227665706051873, 'pattern_counts': {'":': 10, '<': 8, '<?xml version=': 0, '>': 9, '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': '6151670', 'n_tokens_mistral': 1729, 'n_tokens_neox': 1708, 'n_words': 503}