We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d432409 commit 55e6cd9Copy full SHA for 55e6cd9
rust-mode-tests.el
@@ -1452,6 +1452,19 @@ fn g() {
1452
"g" font-lock-function-name-face
1453
"\"xs\"" font-lock-string-face)))
1454
1455
+(ert-deftest font-lock-string-ending-with-r-word-boundary ()
1456
+ (with-temp-buffer
1457
+ (rust-mode)
1458
+ (insert "const foo = \"foo bar\"")
1459
+ (font-lock-fontify-buffer)
1460
+ ;; right-word should move the point to the end of the words.
1461
+ (goto-char 14)
1462
+ (right-word)
1463
+ (should (equal 17 (point)))
1464
1465
+ (should (equal 21 (point)))
1466
+ ))
1467
+
1468
(ert-deftest font-lock-raw-string-trick-ending-followed-by-string-with-quote ()
1469
(rust-test-font-lock
1470
"r\"With what looks like the start of a raw string at the end r#\";
0 commit comments