|
| 1 | +;;; purescript-vars.el --- Variable definitions for PureScript Mode -*- lexical-binding: t -*- |
| 2 | + |
| 3 | +;; Author: 1997-1998 Graeme E Moss <gem@cs.york.ac.uk> |
| 4 | +;; 1997-1998 Tommy Thorn <thorn@irisa.fr> |
| 5 | +;; 2003 Dave Love <fx@gnu.org> |
| 6 | +;; 2025 Konstantin Kharlamov <Hi-Angel@yandex.ru> |
| 7 | + |
| 8 | +;; This file is not part of GNU Emacs. |
| 9 | + |
| 10 | +;; This file is free software; you can redistribute it and/or modify |
| 11 | +;; it under the terms of the GNU General Public License as published by |
| 12 | +;; the Free Software Foundation; either version 3, or (at your option) |
| 13 | +;; any later version. |
| 14 | + |
| 15 | +;; This file is distributed in the hope that it will be useful, |
| 16 | +;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | +;; GNU General Public License for more details. |
| 19 | + |
| 20 | +;; You should have received a copy of the GNU General Public License |
| 21 | +;; along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | + |
| 23 | +(defvar-local purescript-literate nil |
| 24 | + "If not nil, the current buffer contains a literate PureScript script. |
| 25 | +Possible values are: `bird' and `tex', for Bird-style and LaTeX-style |
| 26 | +literate scripts respectively. Set by `purescript-mode' and |
| 27 | +`literate-purescript-mode'. For an ambiguous literate buffer -- i.e. does |
| 28 | +not contain either \"\\begin{code}\" or \"\\end{code}\" on a line on |
| 29 | +its own, nor does it contain \">\" at the start of a line -- the value |
| 30 | +of `purescript-literate-default' is used.") |
| 31 | +(put 'purescript-literate 'safe-local-variable 'symbolp) |
| 32 | + |
| 33 | +(provide 'purescript-vars) |
0 commit comments