File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,13 @@ Does not match type annotations of the form \"foo::<\"."
485
485
(" use" . font-lock-constant-face )
486
486
(" fn" . font-lock-function-name-face )))))
487
487
488
+ (defun rust-end-of-string ()
489
+ " Skip to the end of the current string."
490
+ (save-excursion
491
+ (skip-syntax-forward " ^\" |" )
492
+ (skip-syntax-forward " \" |" )
493
+ (point )))
494
+
488
495
(defun rust-looking-back-str (str )
489
496
" Return non-nil if there's a match on the text before point and STR.
490
497
Like `looking-back' but for fixed strings rather than regexps (so
@@ -1601,13 +1608,6 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1601
1608
; ; There is no opening brace, so consider the whole buffer to be one "defun"
1602
1609
(goto-char (point-max ))))
1603
1610
1604
- (defun rust-end-of-string ()
1605
- " Skip to the end of the current string."
1606
- (save-excursion
1607
- (skip-syntax-forward " ^\" |" )
1608
- (skip-syntax-forward " \" |" )
1609
- (point )))
1610
-
1611
1611
; ;; Formatting using rustfmt
1612
1612
1613
1613
(defconst rust-rustfmt-buffername " *rustfmt*" )
You can’t perform that action at this time.
0 commit comments