<commit_before>" vim: ft=vim:fdm=marker

" OPTION: g:pymode_syntax -- bool.
call pymode#Default('g:pymode_syntax', 1)

" DESC: Disable script loading
if pymode#Default('b:current_syntax', 'python') || !g:pymode_syntax
    finish
endif

" For version 5.x: Clear all syntax items
if version < 600
    syntax clear
endif

" Highlight all
call pymode#Default('g:pymode_syntax_all', 1)

" Keywords {{{
" ============

    syn keyword pythonStatement	break continue del
    syn keyword pythonStatement	exec return
    syn keyword pythonStatement	pass raise
    syn keyword pythonStatement	global assert
    syn keyword pythonStatement	lambda yield
    syn keyword pythonStatement	with
    syn keyword pythonStatement	def class nextgroup=pythonFunction skipwhite
    syn match   pythonFunction	"[a-zA-Z_][a-zA-Z0-9_]*" display contained
    syn keyword pythonRepeat	for while
    syn keyword pythonConditional	if elif else
    syn keyword pythonPreCondit	import from as
    syn keyword pythonException	try except finally
    syn keyword pythonOperator	and in is not or

    if !pymode#Default("g:pymode_syntax_print_as_function", 0) || g:pymode_syntax_print_as_function
        syn keyword pythonStatement print
    endif

" }}}


" Decorators {{{
" ==============

    syn match   pythonDecorator	"@" display nextgroup=pythonDottedName skipwhite
    syn match   pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
    syn match   pythonDot        "\." display containedin=pythonDottedName
    
" }}}


" Comments {{{
" ============

    syn match   pythonComment	"#.*$" display contains=pythonTodo,@Spell
    syn match   pythonRun		"\%^#!.*$"
    syn match   pythonCoding	"\%^.*\(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$"
    syn keyword pythonTodo		TODO FIXME XXX contained

" }}}


" Errors {{{
" ==========<commit_msg>Allow print to be marked as a keyword instead of a function.<commit_after>" vim: ft=vim:fdm=marker

" OPTION: g:pymode_syntax -- bool.
call pymode#Default('g:pymode_syntax', 1)

" DESC: Disable script loading
if pymode#Default('b:current_syntax', 'python') || !g:pymode_syntax
    finish
endif

" For version 5.x: Clear all syntax items
if version < 600
    syntax clear
endif

" Highlight all
call pymode#Default('g:pymode_syntax_all', 1)

" Keywords {{{
" ============

    syn keyword pythonStatement	break continue del
    syn keyword pythonStatement	exec return
    syn keyword pythonStatement	pass raise
    syn keyword pythonStatement	global assert
    syn keyword pythonStatement	lambda yield
    syn keyword pythonStatement	with
    syn keyword pythonStatement	def class nextgroup=pythonFunction skipwhite
    syn match   pythonFunction	"[a-zA-Z_][a-zA-Z0-9_]*" display contained
    syn keyword pythonRepeat	for while
    syn keyword pythonConditional	if elif else
    syn keyword pythonPreCondit	import from as
    syn keyword pythonException	try except finally
    syn keyword pythonOperator	and in is not or

    if !pymode#Default("g:pymode_syntax_print_as_function", 0) || !g:pymode_syntax_print_as_function
        syn keyword pythonStatement print
    endif

" }}}


" Decorators {{{
" ==============

    syn match   pythonDecorator	"@" display nextgroup=pythonDottedName skipwhite
    syn match   pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
    syn match   pythonDot        "\." display containedin=pythonDottedName
    
" }}}


" Comments {{{
" ============

    syn match   pythonComment	"#.*$" display contains=pythonTodo,@Spell
    syn match   pythonRun		"\%^#!.*$"
    syn match   pythonCoding	"\%^.*\(\n.*\)\?#.*coding[:=]\s*[0-9A-Za-z-_.]\+.*$"
    syn keyword pythonTodo		TODO FIXME XXX contained

" }}}


" Errors {{{
" ==========
{'fraction_non_alphanumeric': 0.13145290047897817, 'fraction_numerical': 0.007982969664715274, 'mean_word_length': 3.788535031847134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4252651', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1210, 'n_words': 331}