diff options
| author | Micah Chalmer <micah@micahchalmer.net> | 2015-02-02 01:59:20 -0500 |
|---|---|---|
| committer | Micah Chalmer <micah@micahchalmer.net> | 2015-02-02 01:59:20 -0500 |
| commit | 55080f6744fc11b92016c3babcf4d35c2e4995a6 (patch) | |
| tree | 7cf9469885ac94feb50aed6f669e2101e68343cd /rust-mode-tests.el | |
| parent | 67f483238447d465eaaf1d82b9d85fa8d7fc2bec (diff) | |
| download | rust-mode-55080f6744fc11b92016c3babcf4d35c2e4995a6.tar.gz | |
Fix syntax and highlighting for char literals
This uses syntax properties to make it so that emacs recognizes the
single quote, rather than the double quote, as the string delimiter
within character literals, while leaving the syntax unchanged elsewhere.
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index 54b4524..0df9060 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -893,3 +893,9 @@ list of substrings of `STR' each followed by its face." "/* #[foo] */" '("/* " font-lock-comment-delimiter-face "#[foo] */" font-lock-comment-face))) + +(ert-deftest font-lock-double-quote-character-literal () + (rust-test-font-lock + "'\"'; let" + '("'\"'" font-lock-string-face + "let" font-lock-keyword-face))) |
