Skip to content

Commit aa052e3

Browse files
committed
Escape single quotes in docstrings
Fixes warnings: purescript-font-lock.el:448:2: Error: docstring has wrong usage of unescaped single quotes (use \=' or different quoting such as `...') purescript-indent.el:1321:2: Error: docstring has wrong usage of unescaped single quotes (use \=' or different quoting such as `...') purescript-mode.el:88:2: Error: docstring has wrong usage of unescaped single quotes (use \=' or different quoting such as `...')
1 parent c95d9e7 commit aa052e3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

purescript-font-lock.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ that should be commented under LaTeX-style literate scripts."
448448
(defun turn-on-purescript-font-lock ()
449449
"Turns on font locking in current buffer for PureScript 1.4 scripts.
450450
451-
Changes the current buffer's `font-lock-defaults', and adds the
451+
Changes the current buffer\\='s `font-lock-defaults', and adds the
452452
following variables:
453453
454454
`purescript-keyword-face' for reserved keywords and syntax,
@@ -470,7 +470,7 @@ Use the variable `font-lock-maximum-decoration' to choose
470470
non-default levels of fontification. For example, adding this to
471471
.emacs:
472472
473-
(setq font-lock-maximum-decoration '((purescript-mode . 2) (t . 0)))
473+
(setq font-lock-maximum-decoration \\='((purescript-mode . 2) (t . 0)))
474474
475475
uses level two fontification for `purescript-mode' and default level for
476476
all other modes. See documentation on this variable for further
@@ -480,17 +480,17 @@ To alter an attribute of a face, add a hook. For example, to change
480480
the foreground colour of comments to brown, add the following line to
481481
.emacs:
482482
483-
(add-hook 'purescript-font-lock-hook
483+
(add-hook \\='purescript-font-lock-hook
484484
(lambda ()
485-
(set-face-foreground 'purescript-comment-face \"brown\")))
485+
(set-face-foreground \\='purescript-comment-face \"brown\")))
486486
487487
Note that the colours available vary from system to system. To see
488488
what colours are available on your system, call
489489
`list-colors-display' from emacs.
490490
491491
To turn font locking on for all PureScript buffers, add this to .emacs:
492492
493-
(add-hook 'purescript-mode-hook 'turn-on-purescript-font-lock)
493+
(add-hook \\='purescript-mode-hook \\='turn-on-purescript-font-lock)
494494
495495
To turn font locking on for the current buffer, call
496496
`turn-on-purescript-font-lock'. To turn font locking off in the current

purescript-indent.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ of the regions to move."
13211321
(defun purescript-indent-align-def (p-arg type)
13221322
"Align guards or rpurs within the current definition before point.
13231323
If P-ARG is t align all defs up to the mark.
1324-
TYPE is either 'guard or 'rpurs."
1324+
TYPE is either \\='guard or \\='rpurs."
13251325
(save-excursion
13261326
(let (start-block end-block
13271327
(maxcol (if (eq type 'rpurs) purescript-indent-rpurs-align-column 0))

purescript-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ When MESSAGE is non-nil, display a message with the version."
8787
;;;###autoload
8888
(defun purescript-customize ()
8989
"Browse the purescript customize sub-tree.
90-
This calls 'customize-browse' with purescript as argument and makes
90+
This calls `customize-browse' with purescript as argument and makes
9191
sure all purescript customize definitions have been loaded."
9292
(interactive)
9393
;; make sure all modules with (defcustom ...)s are loaded

0 commit comments

Comments
 (0)