2022-08-25 16:39:50 +03:00
# #######################################################
#
# -------------------------------------------------------
# "PROCNAME" in procFindString will be changed on
# "procName" from procRegexpCommand
# -------------------------------------------------------
2022-08-24 15:04:19 +03:00
# TCL/TK
2022-08-24 15:53:57 +03:00
dict set lexers TCL commentSymbol { # }
2022-08-25 16:39:50 +03:00
dict set lexers TCL procFindString { proc PROCNAME}
dict set lexers TCL procRegexpCommand { regexp - nocase - all - - { ^ \ s * ? ( proc ) ( . * ? ) \ { ( . * ? ) \ } \ { } $line match keyWord procName params}
2022-08-24 15:04:19 +03:00
# --------------------------------------------------
# Go lang
2022-08-24 15:53:57 +03:00
dict set lexers GO commentSymbol { / / }
2022-08-25 16:39:50 +03:00
dict set lexers GO procFindString { func. * ? PROCNAME}
dict set lexers GO procRegexpCommand { regexp - nocase - all - - { \ s * ? func\ s* ? ( \ ( \ w + \ s* ? \ ** ? \ w+ \ ) | ) \ s* ? ( \ w + ) \ ( ( . * ? ) \ ) \ s+ ? ( [ a-zA-Z0-9 \ { \ } \ [ \ ] \ ( \ ) - _.] * ? | ) \ s* ? \ { } $line match linkName procName params returns}
# --------------------------------------------------
# SHELL (Bash)
dict set lexers SH commentSymbol { # }
dict set lexers SH procFindString { ( function | ) \ s * ? PROCNAME\ ( \ ) }
dict set lexers SH procRegexpCommand { regexp - nocase - all - - { ^ \ s * ? ( function | ) \ s* ? ( . * ? ) \ ( ( ) \ ) } $line match keyWord procName params}
2022-08-24 15:53:57 +03:00
2022-08-26 12:29:19 +03:00
# --------------------------------------------------
# Python
dict set lexers PY commentSymbol { # }
dict set lexers PY procFindString { ( def ) \ s * ? PROCNAME}
dict set lexers PY procRegexpCommand { regexp - nocase - all - - { ^ \ s * ? ( def ) \ s* ? ( . * ? ) \ ( ( . * ? ) \ ) : } $line match keyWord procName params}