From 601f16492618a992bbf2b1db33f754ae9b6d1b11 Mon Sep 17 00:00:00 2001 From: Sergey Kalinin Date: Fri, 13 Feb 2026 11:42:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= =?UTF-8?q?=20=D1=81=20=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 2 ++ lib/lexers.tcl | 3 ++- projman.tcl | 2 +- redhat/projman.spec | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 88dcecf..ce48b7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ projman (2.0.0-beta4) stable; urgency=medium + * Исправлено регулярное выражение для поиска переменных в коде на С. * Добавил экранирование '*' в имени функции для поиска. * Подкрректировал регулярки для работы с С. * Исиправил закрытие вкладки при отпускании кнопки мыши при нажатии на крестик. @@ -510,3 +511,4 @@ projman (2.0.0-alfa0) stable; urgency=medium + diff --git a/lib/lexers.tcl b/lib/lexers.tcl index 6342fca..aa7c9ea 100644 --- a/lib/lexers.tcl +++ b/lib/lexers.tcl @@ -113,6 +113,7 @@ dict set lexers C procFindString {(\w+)\s+(PROCNAME)\s*\((.*?)(,|\))(\W|$)} dict set lexers C procRegexpCommand {regexp -nocase -all -line -- {^(?:(\w+)\s+)+(\*\w+|\w+)\s*\((.*?)(,|\))} $line match returns procName params v4} # dict set lexers C procRegexpCommand {regexp -nocase -all -- {\s*?func\s*?(\(\w+\s*?\**?\w+\)|)\s*?(\w+)\((.*?)\)\s+?([a-zA-Z0-9\{\}\[\]\(\)-_.]*?|)\s*?\{} $line match linkName procName params returns} # dict set lexers C varRegexpCommand {regexp -nocase -all -line -- {^\s*?var\s+([a-zA-Z0-9\-_$]+)\s+(.+?)(\s*$)} $line match varName varType lineEnd} +dict set lexers C varRegexpCommand {regexp -nocase -all -line -- {^\s*(\w+\s+)+(?:[*\s]+)?(\w+)\s*[=;,\[]} $line match varType varName} dict set lexers C commands {auto break case const continue default do else enum extern for goto if inline int long register restrict return signed sizeof static struct switch typedef typeof typeof_unqual union unsigned void volatile while} #-------------------------------------------------- @@ -124,7 +125,7 @@ dict set lexers H commentMultilineSymbolEnd {*/} dict set lexers H procFindString {^\s*(?:(\w+)\s+)+(PROCNAME)\s*\((.*?)(,|\))} dict set lexers H procRegexpCommand {regexp -nocase -all -line -- {^(?:(\w+)\s+)+(\*\w+|\w+)\s*\((.*?)(,|\))} $line match returns procName params v4} # dict set lexers C procRegexpCommand {regexp -nocase -all -- {\s*?func\s*?(\(\w+\s*?\**?\w+\)|)\s*?(\w+)\((.*?)\)\s+?([a-zA-Z0-9\{\}\[\]\(\)-_.]*?|)\s*?\{} $line match linkName procName params returns} -# dict set lexers C varRegexpCommand {regexp -nocase -all -line -- {^\s*?var\s+([a-zA-Z0-9\-_$]+)\s+(.+?)(\s*$)} $line match varName varType lineEnd} +dict set lexers C varRegexpCommand {regexp -nocase -all -line -- {^\s*(\w+\s+)+(?:[*\s]+)?(\w+)\s*[=;,\[]} $line match varType varName} dict set lexers H commands {auto break case const continue default do else enum extern for goto if inline int long register restrict return signed sizeof static struct switch typedef typeof typeof_unqual union unsigned void volatile while} # ------------------------------------------------- diff --git a/projman.tcl b/projman.tcl index 89e5360..b0442ed 100755 --- a/projman.tcl +++ b/projman.tcl @@ -10,7 +10,7 @@ exec wish8.6 "$0" -- "$@" ###################################################### # Version: 2.0.0 # Release: beta4 -# Build: 12022026115443 +# Build: 13022026112625 ###################################################### # определим текущую версию, релиз и т.д. diff --git a/redhat/projman.spec b/redhat/projman.spec index 1865e89..f9f021e 100644 --- a/redhat/projman.spec +++ b/redhat/projman.spec @@ -70,7 +70,8 @@ fi %{_iconsdir}/hicolor/48x48/apps/projman.png %changelog -* Thu Feb 12 2026 svk 2.0.0-beta4 +* Fri Feb 13 2026 svk 2.0.0-beta4 + - Исправлено регулярное выражение для поиска переменных в коде на С. - Добавил экранирование '*' в имени функции для поиска. - Подкрректировал регулярки для работы с С. - Исправил закрытие вкладки при отпускании кнопки мыши при нажатии на крестик. @@ -237,3 +238,4 @@ fi +