diff --git a/lib/highlight.tcl b/lib/highlight.tcl index 1608ed3..112cef0 100644 --- a/lib/highlight.tcl +++ b/lib/highlight.tcl @@ -118,4 +118,17 @@ namespace eval Highlight {} { ctext::addHighlightClassForRegexp $txt quotedtext #a9b36c {^(\s*?)(>+).+?$} ctext::addHighlightClassForRegexp $txt italictext #dff74e {((_|\*)+?)(\w+?)((_|\*)+?)} } + + proc PL {txt} { + ctext::addHighlightClassForRegexp $txt qoute #b84a0c {("|'|`).*?("|'|`)} + ctext::addHighlightClassForRegexp $txt flags orange {\s-[a-zA-Z]+} + ctext::addHighlightClass $txt stackControl #19a2a6 {sub my end class new if else elsif for foreach while case when use ne eq print exit chdir rand die lt gt le ge say unless return chomp package push exec grep eval warn scalar next continue close} + ctext::addHighlightClassForRegexp $txt vars #4471ca {(\$|\*|\&)[\.a-zA-Z0-9\_\-\[\]]+} + ctext::addHighlightClassForSpecialChars $txt brackets green {[]{}()} + # ctext::addHighlightClassForSpecialChars $txt dog #0082ff {@} + ctext::addHighlightClassForRegexp $txt dog #0082ff {(@)[\.a-zA-Z0-9\_\-\[\]]+} + ctext::addHighlightClassForRegexp $txt paths lightblue {\.[a-zA-Z0-9\_\-]+} + ctext::addHighlightClassForRegexp $txt comments #666666 {(#|//)[^\n\r]*} + ctext::addHighlightClassForRegexp $txt namespaces #0093ff {->|\+\+|::} + } } diff --git a/lib/image_library.tcl b/lib/image_library.tcl index 5f00ceb..c0b56df 100644 --- a/lib/image_library.tcl +++ b/lib/image_library.tcl @@ -1379,4 +1379,5 @@ image create photo git_16x12 -data { vQTesyxrAg+qGonIYGkHqipU5zwIgjdglldxSwLnXMcYMy6Ac1X9AnaAZ2APmIRh2C5dYhzH9TRN R6oaAWRZ1lTVubX2KT8yqdVqx71eb1YqKJHcAh44qYKXBPlHWgeugf1VN1cKfl4iIgNjjAvDsF0F A3wD9EWTx4J8PxsAAAAASUVORK5CYII= -} +} + diff --git a/lib/lexers.tcl b/lib/lexers.tcl index 3a7a860..b137e3a 100644 --- a/lib/lexers.tcl +++ b/lib/lexers.tcl @@ -55,5 +55,14 @@ dict set lexers MD procFindString {(#+?)\s*?PROCNAME} dict set lexers MD procRegexpCommand {regexp -nocase -all -- {^(#+?)\s(.+?)$} $line match keyWord procName} # dict set lexers YML varRegexpCommandMultiline {regexp -all -line -- {^(\s*)(set_fact|vars):$} $line match indent keyWord} +#-------------------------------------------------- +# Perl +dict set lexers PL commentSymbol {#} +dict set lexers PL variableSymbol {$} +dict set lexers PL tabSize 4 +dict set lexers PL procFindString {(sub )\s*?PROCNAME} +dict set lexers PL procRegexpCommand {regexp -nocase -all -- {^\s*?(sub)\s([a-zA-Z0-9\-_:]+?)($|\(.+?\))} $line match keyWord procName params} +dict set lexers PL varRegexpCommand {regexp -nocase -all -- {^(\s*?)\$([a-zA-Z0-9\-_$]+)\s+=\s+(.+?)(\s*;$)} $line match indent varName varValue lineEnd} + # ------------------------------------------------- dict set lexers ALL varDirectory {variables vars group_vars host_vars defaults} diff --git a/projman.tcl b/projman.tcl index 8ff863f..d571aee 100755 --- a/projman.tcl +++ b/projman.tcl @@ -10,7 +10,7 @@ exec wish "$0" -- "$@" ###################################################### # Version: 2.0.0 # Release: alpha -# Build: 05122022105648 +# Build: 07122022131333 ###################################################### # определим текущую версию, релиз и т.д.