Gedit syntax-highlighting with gtksourceview for backreferencing sub-patterns?
问题 The following will highlight "timeout" on the second line but will not highlight it ever again. Does gtksourceview support some sort of backreference on the "sub-pattern" that will match all instances throughout the file ? gtksourceview website manual /usr/share/gtksourceview-2.0/language-specs/c.lang <context id="struct" style-ref="struct"> <match>\bstruct\b\s\w+\s(\w+)</match> <include> <context sub-pattern="1" style-ref="structname"/> </include> </context> int ns; struct timeval timeout;