Override syntax properties for angle brackets appearing in left/right single arrows
This commit is contained in:
parent
0832b94ce9
commit
1054cd4219
|
@ -87,6 +87,11 @@
|
|||
'font-lock-keyword-face)
|
||||
))
|
||||
|
||||
(defvar preserves-syntax-propertize-function
|
||||
(syntax-propertize-rules
|
||||
("->" (0 "_"))
|
||||
("<-" (0 "_"))))
|
||||
|
||||
(defun preserves-mode-variables ()
|
||||
(make-local-variable 'comment-use-syntax)
|
||||
(make-local-variable 'comment-start)
|
||||
|
@ -100,6 +105,7 @@
|
|||
(setq font-lock-defaults '(preserves-font-lock-keywords nil nil ()))
|
||||
(make-local-variable 'indent-line-function)
|
||||
(setq indent-line-function #'preserves-indent-line)
|
||||
(setq syntax-propertize-function preserves-syntax-propertize-function)
|
||||
)
|
||||
|
||||
(defvar preserves-indent-basic 2
|
||||
|
|
Loading…
Reference in New Issue