mirror of
https://github.com/vale981/python-docstring-mode
synced 2025-03-05 09:31:43 -05:00
support raw r""" syntax for docstrings
This commit is contained in:
parent
cede45a6e8
commit
5068940366
1 changed files with 4 additions and 1 deletions
|
@ -19,8 +19,11 @@
|
||||||
(throw 'not-a-string nil))))
|
(throw 'not-a-string nil))))
|
||||||
(string-start (+ (goto-char (nth 8 syx))
|
(string-start (+ (goto-char (nth 8 syx))
|
||||||
3))
|
3))
|
||||||
|
(rawchar (if (eql (char-before (point)) ?r)
|
||||||
|
1
|
||||||
|
0))
|
||||||
;; at the beginning of the screen here
|
;; at the beginning of the screen here
|
||||||
(indent-count (- (- string-start 3)
|
(indent-count (- (- string-start (+ rawchar 3))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(point))))
|
(point))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue