diff --git a/syntax/rust.nanorc b/syntax/rust.nanorc index 6b73c759..1a933ab3 100644 --- a/syntax/rust.nanorc +++ b/syntax/rust.nanorc @@ -22,8 +22,8 @@ color magenta "[A-Z][A-Z_0-9]+" color magenta "[A-Z][A-Za-z0-9]+" # Strings -color green "".*"" -color green start="".*\\$" end=".*"" +color green ""([^"]|\\")*"" +color green start=""([^"]|\\")*\\$" end=".*"" ## NOTE: This isn't accurate, but matching "#{0,} for the end of the string is too liberal. color green start="r#+"" end=""#+"