Commit: runtime(strace): highlight stack trace as comment
Christian Brabandt <[email protected]> Mon, 10 Aug 2026 21:15:04 +0200
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
runtime(strace): highlight stack trace as comment Commit: https://github.com/vim/vim/commit/2e8c81ea093ca84fa8402cb140422d5338bbb6d9 Author: Josef Schönberger <[email protected]> Date: Mon Aug 10 18:58:53 2026 +0000 runtime(strace): highlight stack trace as comment strace supports printing a complete stack trace for each syscall using the `-k` (`--stack-trace`) flag. Highlight the trace as a comment. closes: #20998 Signed-off-by: Josef Schönberger <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/syntax/strace.vim b/runtime/syntax/strace.vim index 20516a185..e4a64bee2 100644 --- a/runtime/syntax/strace.vim +++ b/runtime/syntax/strace.vim @@ -2,6 +2,7 @@ " Language: strace output " Maintainer: David Necas (Yeti) <[email protected]> " Last Change: 2022 Jan 29 +" 2026 Aug 10 by Vim Project: highlight strack trace as comment #20998 " Setup " quit when a syntax file was already loaded @@ -29,11 +30,13 @@ syn match straceSysCallEmbed "\w\+" contained syn keyword stracePID pid contained syn match straceOperator "[-+=*/!%&|:,]" syn region straceComment start="/\*" end="\*/" oneline +syn match straceStackTrace "^ *> .*$" " Define the default highlighting hi def link straceComment Comment hi def link straceVerbosed Comment +hi def link straceStackTrace Comment hi def link stracePID PreProc hi def link straceNumber Number hi def link straceNumberRHS Type -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wtVSi-005mDO-NU%40256bit.org.