]> git.lizzy.rs Git - rust.git/commit
Gedit/gtksourceview language spec: add raw strings
authorSimon Sapin <simon.sapin@exyr.org>
Tue, 29 Jul 2014 21:05:37 +0000 (22:05 +0100)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 22:44:35 +0000 (15:44 -0700)
commit3c453b36ce371da1339883f5e0157c5c13e7f9fd
tree5b90f9a92b91b98eb19e5e9b7b396e6f9340494b
parent02d12e5f71ac37374684439f2f9c36f38b72f63a
Gedit/gtksourceview language spec: add raw strings

… and color (raw) strings as such in attributes.
This fixes cases where a string contains ] inside an attribute:
that ] used to incorrectly end the attribute coloring.

For large (many lines) doc comments, I’ve found preferable to use
`#![doc = r#"..."#]` to avoid prefixing every line with `//!`.
src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang