GNOME Bugzilla – Bug 747140
GDB-log syntax does not match all filenames
Last modified: 2015-04-13 16:51:14 UTC
The GDB-log syntax only matches file names that contain nothing but letters, digits, underscores, slashes and dots. For file names that contain other characters, this results in a lack of highlighting -- not only for the file name itself, but also for the beginning of the next line.
Created attachment 300712 [details] [review] Fixing patch.
Review of attachment 300712 [details] [review]: I didn't know that '?' can be used to minimize a quantifier, I've learned something new today :-) The patch looks good, but can you provide or update an example in tests/syntax-highlighting/? So we can test more easily the change.
Created attachment 300817 [details] [review] Highlighting test file Note that this test file contains output that GDB generates with 'set logging on'. It includes only the output, not the echoed stdin or the '(gdb)' prompt.
Review of attachment 300712 [details] [review]: Ok, with the other commit this can be pushed.
Review of attachment 300817 [details] [review]: Looks good.
Commit pushed, thanks. https://git.gnome.org/browse/gtksourceview/commit/?id=56ddcc6cbaeb9460c92fddff6b5d08a43277a6fd https://git.gnome.org/browse/gtksourceview/commit/?id=56f90087ea545884b9560687e7f58f267456abd9