[syntax_highlight] Inline code spans not highlighted if followed by punctuation
- Gajim Version: 1.1.2 / master
- Plugin Version: >= 1.0.0
- Operating System: all
Currently, the plugin matches (and formats) inline code spans only if pre-/succeeded by whitespaces, including newlines. This leads to unexpected non-formatted code spans if, for instance, followed by a comma.
Hence, the plugin should not only allow whitespaces to surround code spans, but also any of the following characters as long as they are not part of another markup formatting directive (see: #405 (closed)).
Allowed punctuation characters:
- comma:
,
- quotation marks ("fancy" ones, incl. guillements, too?!):
"'‘’“”‹›«»
- end marks:
.?!
; plus their spanish "begin" counterparts:¡¿
- colon + semicolon:
:;
- brackets:
{}[]()<>
- ellipses:
… ... . . .
- others:
-_*~
Quite a lot already. I guess, this should cover most cases in many languages where punctuation is needed directly before/after code spans. Since I don't know them all, please add more characters that you might need/want in the comments.