[vim/vim] Update GDB syntax file (WIP) (PR #10649)

45 views
Skip to first unread message

Doug Kearns

unread,
Jul 2, 2022, 7:55:16 AM7/2/22
to vim/vim, Subscribed

This addresses some queries in #8276.

It also seems this file hasn't been updated in some time so I'll look at
bringing it up to date with version 12.

@GitMensch if you have any suggestions beyond a general update let me know.

  • Add Guile and Python command highlighting
  • Update list of info subcommands
  • Update list of set subcommands
  • Simplify statement achoring
  • Add server prefix highlighting
  • Whitespace fix

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/10649

Commit Summary

  • 6909a99 Add Guile and Python command highlighting
  • 18333ea Update list of info subcommands
  • ce63f87 Update list of set subcommands
  • 1092a1b Simplify statement achoring
  • 05c4380 Add server prefix highlighting
  • 326d7b0 Whitespace fix

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649@github.com>

codecov[bot]

unread,
Jul 2, 2022, 8:04:05 AM7/2/22
to vim/vim, Subscribed

Codecov Report

Merging #10649 (326d7b0) into master (95afae6) will increase coverage by 0.90%.
The diff coverage is n/a.

@@            Coverage Diff             @@

##           master   #10649      +/-   ##

==========================================

+ Coverage   81.70%   82.61%   +0.90%     

==========================================

  Files         158      148      -10     

  Lines      185485   172831   -12654     

  Branches    41952    39074    -2878     

==========================================

- Hits       151554   142779    -8775     

+ Misses      21471    17457    -4014     

- Partials    12460    12595     +135     
Flag Coverage Δ
huge-clang-none 82.61% <ø> (-0.01%) ⬇️
linux 82.61% <ø> (-0.01%) ⬇️
mingw-x64-HUGE ?
mingw-x64-HUGE-gui ?
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/highlight.c 78.41% <0.00%> (-2.69%) ⬇️
src/time.c 87.08% <0.00%> (-2.56%) ⬇️
src/misc2.c 86.68% <0.00%> (-2.52%) ⬇️
src/help.c 80.07% <0.00%> (-2.38%) ⬇️
src/buffer.c 84.11% <0.00%> (-2.35%) ⬇️
src/gui.c 71.04% <0.00%> (-2.07%) ⬇️
src/session.c 63.15% <0.00%> (-1.94%) ⬇️
src/menu.c 81.36% <0.00%> (-1.83%) ⬇️
src/arglist.c 83.83% <0.00%> (-1.72%) ⬇️
src/vim9cmds.c 85.16% <0.00%> (-1.70%) ⬇️
... and 128 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95afae6...326d7b0. Read the comment docs.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1172887240@github.com>

Simon Sobisch

unread,
Jul 2, 2022, 10:46:57 AM7/2/22
to vim/vim, Subscribed

Not much comments from me other than: totally cool, and a bit sad that it comes after the Vim release.

Embedded python also seems to work fine!

It likely would be useful to highlight sub-settings, for example:

# personal history file
set history save on
set history filename ~/.gdb_history
set history remove-duplicates 1

# setup for vim's termdebug
set print elements 250
set print repeats 20
set pagination off
set breakpoint pending on

# general setup
set print frame-arguments all

where only the "set" and "history"/"print" are highlighted.

At least with "set" it also seems reasonable to highlight the common values "on", "off", "unlimited".


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1172910235@github.com>

Doug Kearns

unread,
Jul 3, 2022, 1:00:42 PM7/3/22
to vim/vim, Push

@dkearns pushed 6 commits.

  • 0777080 Add Guile and Python command highlighting
  • edc48ff Update list of info subcommands
  • 110a54a Update list of set subcommands
  • cb1a3bc Simplify statement anchoring
  • 330ff31 Add server prefix highlighting
  • 04cfc70 Whitespace fix


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/10333142289@github.com>

Doug Kearns

unread,
Jul 5, 2022, 11:29:47 AM7/5/22
to vim/vim, Push

@dkearns pushed 2 commits.

  • d464e28 Highlight line continuations
  • 63423c2 Update command list to version 12

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/10351822318@github.com>

Doug Kearns

unread,
Jul 7, 2022, 7:06:03 AM7/7/22
to vim/vim, Push

@dkearns pushed 1 commit.

  • b2931c4 Add matchit, browsefilter and comment formatting support

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/10372334704@github.com>

Doug Kearns

unread,
Jul 7, 2022, 7:16:55 AM7/7/22
to vim/vim, Push

@dkearns pushed 1 commit.

  • 1d4cf7e Add matchit, browsefilter and comment formatting support

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/10372454845@github.com>

Doug Kearns

unread,
Jul 7, 2022, 7:48:12 AM7/7/22
to vim/vim, Push

@dkearns pushed 1 commit.

  • 45552f6 Support embedded C in compiler {code|print} commands

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/10372765307@github.com>

Yegappan Lakshmanan

unread,
Aug 13, 2023, 4:59:51 PM8/13/23
to vim/vim, Subscribed

Any updates on this?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1676460947@github.com>

dkearns

unread,
Aug 14, 2023, 8:48:43 AM8/14/23
to vim/vim, Push

@dkearns pushed 1 commit.

  • 432c9d7 Fix "All Files" browsefilter pattern

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/14668169683@github.com>

dkearns

unread,
Aug 14, 2023, 8:52:11 AM8/14/23
to vim/vim, Subscribed

It seems the syntax file in my personal runtime directory is about a thousand lines longer than the one in this PR. I'm not sure if this is a positive discovery but I'll try and sort it out in the next week or so.

Thanks for the gentle reminder.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1677258340@github.com>

dkearns

unread,
Aug 14, 2023, 9:05:56 AM8/14/23
to vim/vim, Push

@dkearns pushed 1 commit.

  • 757fdce Set Matchit to case-sensitive

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/14668409395@github.com>

dkearns

unread,
Aug 15, 2023, 12:26:49 PM8/15/23
to vim/vim, Push

@dkearns pushed 1 commit.

  • ce2e744 Add largely complete settings highlighting and folding

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/push/14683615762@github.com>

dkearns

unread,
Aug 15, 2023, 12:32:00 PM8/15/23
to vim/vim, Subscribed

@GitMensch maybe you can give the latest syntax file a quick run some time and let me know if there's anything obvious that needs improvement.

There's still a lot that could be done but it's probably a good idea push an update soon...this year.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1679260581@github.com>

dkearns

unread,
Aug 23, 2023, 8:57:30 AM8/23/23
to vim/vim, Subscribed

@fleiner, I was under the impression that you were no longer maintaining this file as the latest on your website (mentioned in the hearder) is from 2003 but I see it has been added to a GitHub more recently.

If you're not interested in this rather large patch I'm happy to maintain it externally or alternatively take over maintenance of the distributed file. Let me know, thanks.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c1689915882@github.com>

dkearns

unread,
Sep 24, 2024, 10:08:14 AM9/24/24
to vim/vim, Push

@dkearns pushed 16 commits.

  • 40153e0 Add Guile and Python command highlighting
  • d217705 Update list of info subcommands
  • 258013a Update list of set subcommands
  • 7a377aa Simplify statement anchoring
  • 92e5944 Add server prefix highlighting
  • e3b4ec2 Whitespace fix
  • 513d5e5 Highlight line continuations
  • d22baec Update command list to version 12
  • aa532ed Improve alias command highlighting
  • bf196d5 Highlight subcommands of set
  • 820be6c Add matchit, browsefilter and comment formatting support
  • 40c6fa4 Support embedded C in compiler {code|print} commands
  • 7ab4ab6 Fix "All Files" browsefilter pattern
  • d1b582d Set Matchit to case-sensitive
  • 960ae43 Add largely complete settings highlighting and folding
  • 8f8606b Add syntax documentation

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/ce2e744926adfa040aa465cc0e1f8717bd897ed0/after/8f8606bdb08cdd1422f69ec21854e4efd23b43ac@github.com>

dkearns

unread,
Sep 24, 2024, 10:16:03 AM9/24/24
to vim/vim, Push

@dkearns pushed 5 commits.

  • 332e575 Add matchit, browsefilter and comment formatting support
  • 4951f6b Support embedded C in compiler {code|print} commands
  • 6aab437 Set Matchit to case-sensitive
  • 2a7ba28 Add largely complete settings highlighting and folding
  • 01bc18a Add syntax documentation

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/8f8606bdb08cdd1422f69ec21854e4efd23b43ac/after/01bc18ad301cfc440d56c6d34770314aebce54cc@github.com>

PEMessage

unread,
Jun 8, 2025, 10:07:42 AMJun 8
to vim/vim, Subscribed
PEMessage left a comment (vim/vim#10649)

Any update?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c2954098143@github.com>

dkearns

unread,
Jun 10, 2025, 2:22:19 PMJun 10
to vim/vim, Subscribed
dkearns left a comment (vim/vim#10649)

Yes, GDB is now at version 16. :)

I'll take over as maintainer as we haven't heard from Claudio in a long time. Thanks for all your efforts Claudio!

I'll try and figure out where I was up to and push something out in the next couple of weeks. If I do not, please feel free to yell at me.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c2960218953@github.com>

Simon Sobisch

unread,
Jun 10, 2025, 3:50:52 PMJun 10
to vim/vim, Subscribed
GitMensch left a comment (vim/vim#10649)

When you consider the highlighting to be good - I'd suggest to check out https://github.com/pirpyn/gdb-syntax-vscode/tree/master/tests and open each of those files in vim, checking its results.

For editing: working outline (in case of defined functions) and goto (maybe also for vars $set) would be nice.

Hm, and the first time I'm thinking about this more: an online-help (maybe as "popup") that leverages gdb, seems quite useful.
For example to get more information about "br" in a script we could get the output of gdb --batch -ex "help br" and present it to the user.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c2960416425@github.com>

dkearns

unread,
Jun 28, 2025, 2:17:55 PMJun 28
to vim/vim, Push

@dkearns pushed 17 commits.

  • 878cb06 Add Guile and Python command highlighting
  • b5f1892 Update list of info subcommands
  • c2c2983 Update list of set subcommands
  • 8cb7236 Simplify statement anchoring
  • c207011 Add server prefix highlighting
  • c992388 Whitespace fix
  • fc66c5c Highlight line continuations
  • 598c30f Update command list to version 12
  • 475d1c0 Improve alias command highlighting
  • 25e9f1f Highlight subcommands of set
  • abc01d4 Add matchit, browsefilter and comment formatting support
  • c77aff8 Support embedded C in compiler {code|print} commands
  • 51cf8a4 Set Matchit to case-sensitive
  • 5aaa54c Add largely complete settings highlighting and folding
  • dd2777e Add syntax documentation
  • bc619f6 New maintainer Doug Kearns, thanks Claudio.
  • 55be197 Update doc/tags for new syntax help

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/26e22a3e38fc9802b0bfeaaabe33171ab5361c57/after/55be19789bc8edc3e03959c26390aba0fab7a1db@github.com>

dkearns

unread,
Jun 28, 2025, 2:57:59 PMJun 28
to vim/vim, Push

@dkearns pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/55be19789bc8edc3e03959c26390aba0fab7a1db/after/863fe40d56348b32df65cfd09059fcd7a6fc3067@github.com>

dkearns

unread,
Jun 28, 2025, 3:05:41 PMJun 28
to vim/vim, Push

@dkearns pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/863fe40d56348b32df65cfd09059fcd7a6fc3067/after/3926149f084584e9a0b3f3bf50170f9ab30675db@github.com>

Simon Sobisch

unread,
Sep 15, 2025, 2:00:51 AM (6 days ago) Sep 15
to vim/vim, Subscribed
GitMensch left a comment (vim/vim#10649)

@dkearns Can you please rebase so that we may include whichever parts are non-conflicting?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/c3290601587@github.com>

dkearns

unread,
Sep 15, 2025, 2:13:01 AM (6 days ago) Sep 15
to vim/vim, Push

@dkearns pushed 19 commits.

  • 7cd60bf Add Guile and Python command highlighting
  • b305f6b Update list of info subcommands
  • b5a71c6 Update list of set subcommands
  • 4db0177 Simplify statement anchoring
  • 32e9293 Add server prefix highlighting
  • 4225e20 Whitespace fix
  • 5580a10 Highlight line continuations
  • 39329db Update command list to version 12
  • 3530014 Improve alias command highlighting
  • f062b64 Highlight subcommands of set
  • 4c64e1f Add matchit, browsefilter and comment formatting support
  • 4e36294 Support embedded C in compiler {code|print} commands
  • 3003e89 Set Matchit to case-sensitive
  • d4fbf0e Add largely complete settings highlighting and folding
  • 2bde56f Add syntax documentation
  • 6dd96ce Update doc/tags for new syntax help
  • 3d2eb9c Add help all smoke test
  • 79f4372 Whitespace fixes.
  • ed8ba2c more fixes - check these

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/3926149f084584e9a0b3f3bf50170f9ab30675db/after/ed8ba2c99dc9d1d6ff3eaa3413a1ce717015e122@github.com>

dkearns

unread,
Sep 15, 2025, 2:54:30 AM (6 days ago) Sep 15
to vim/vim, Push

@dkearns pushed 1 commit.

  • d62d211 improve syncing, match gdbDefine as normal commands

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/ed8ba2c99dc9d1d6ff3eaa3413a1ce717015e122/after/d62d2117b865a9998d96e7add0438ced96d5e3bd@github.com>

dkearns

unread,
Sep 16, 2025, 3:33:44 AM (5 days ago) Sep 16
to vim/vim, Push

@dkearns pushed 1 commit.

  • 1380ffe Fix doc example 'fdm' highlighting

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/d62d2117b865a9998d96e7add0438ced96d5e3bd/after/1380ffe3c23722b6436a6ed068cb163f5c3dea2b@github.com>

dkearns

unread,
Sep 16, 2025, 10:49:38 AM (5 days ago) Sep 16
to vim/vim, Push

@dkearns pushed 1 commit.

  • a84c882 More cleanup and add multiline command folding tests

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10649/before/b972651bbc65390dd3d10378b351aa8dc2bd2788/after/a84c88293c91678357ef9657c27108be0a996fc4@github.com>

Reply all
Reply to author
Forward
0 new messages