"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "style/comment.el" between
auctex-12.2.tar.gz and auctex-12.3.tar.gz

About: AUCTEX is an extensible package for writing and formatting TeX files in GNU Emacs and XEmacs.

comment.el  (auctex-12.2):comment.el  (auctex-12.3)
;;; comment.el --- AUCTeX style for `comment.sty' ;;; comment.el --- AUCTeX style for `comment.sty'
;; Copyright (C) 2007, 2018 Free Software Foundation, Inc. ;; Copyright (C) 2007, 2018, 2020 Free Software Foundation, Inc.
;; Author: Ralf Angeli <angeli@caeruleus.net> ;; Author: Ralf Angeli <angeli@caeruleus.net>
;; Maintainer: auctex-devel@gnu.org ;; Maintainer: auctex-devel@gnu.org
;; Created: 2007-03-18 ;; Created: 2007-03-18
;; Keywords: tex ;; Keywords: tex
;; This file is part of AUCTeX. ;; This file is part of AUCTeX.
;; AUCTeX is free software; you can redistribute it and/or modify it ;; AUCTeX is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by ;; under the terms of the GNU General Public License as published by
skipping to change at line 38 skipping to change at line 38
;; This file adds support for `comment.sty'. ;; This file adds support for `comment.sty'.
;;; Code: ;;; Code:
;; Silence the compiler: ;; Silence the compiler:
(declare-function font-latex-add-keywords (declare-function font-latex-add-keywords
"font-latex" "font-latex"
(keywords class)) (keywords class))
(declare-function font-latex-update-font-lock (declare-function font-latex-set-syntactic-keywords
"font-latex" "font-latex")
(&optional syntactic-kws))
(defvar font-latex-syntactic-keywords-extra) (defvar font-latex-syntactic-keywords-extra)
(TeX-add-style-hook (TeX-add-style-hook
"comment" "comment"
(lambda () (lambda ()
;; New symbols ;; New symbols
(TeX-add-symbols (TeX-add-symbols
'("includecomment" "Name") '("includecomment" "Name")
'("excludecomment" "Name") '("excludecomment" "Name")
'("specialcomment" "Name" "Before commands" "After commands") '("specialcomment" "Name" "Before commands" "After commands")
'("processcomment" "Name" "Each-line commands" '("processcomment" "Name" "Each-line commands"
"Before commands" "After commands")) "Before commands" "After commands"))
;; New environments ;; New environments
(mapc 'LaTeX-add-environments LaTeX-comment-env-list) (mapc 'LaTeX-add-environments LaTeX-comment-env-list)
;; Fontification ;; Fontification
(when (and (fboundp 'font-latex-add-keywords) (when (and (fboundp 'font-latex-add-keywords)
(fboundp 'font-latex-update-font-lock)
(eq TeX-install-font-lock 'font-latex-setup)) (eq TeX-install-font-lock 'font-latex-setup))
;; For syntactic fontification. ;; For syntactic fontification.
(add-to-list 'font-latex-syntactic-keywords-extra (add-to-list 'font-latex-syntactic-keywords-extra
;; \begin is supposed to start at the beginning of a line. ;; \begin is supposed to start at the beginning of a line.
`(,(format "^\\\\begin *{%s}.*\\(\n\\)" `(,(format "^\\\\begin *{%s}.*\\(\n\\)"
(regexp-opt LaTeX-comment-env-list)) (regexp-opt LaTeX-comment-env-list))
(1 "!" t))) (1 "!" t)))
(add-to-list 'font-latex-syntactic-keywords-extra (add-to-list 'font-latex-syntactic-keywords-extra
;; \end is supposed to start at the beginning of a line. ;; \end is supposed to start at the beginning of a line.
`(,(format "^\\(\\\\\\)end *{%s}" `(,(format "^\\(\\\\\\)end *{%s}"
(regexp-opt LaTeX-comment-env-list)) (regexp-opt LaTeX-comment-env-list))
(1 "!" t))) (1 "!" t)))
(font-latex-add-keywords '(("includecomment" "{") (font-latex-add-keywords '(("includecomment" "{")
("excludecomment" "{") ("excludecomment" "{")
("specialcomment" "{{{") ("specialcomment" "{{{")
("processcomment" "{{{{")) ("processcomment" "{{{{"))
'variable) 'variable)
;; Tell font-lock about the update. ;; Tell font-lock about the update.
(font-latex-update-font-lock t))) (font-latex-set-syntactic-keywords)))
LaTeX-dialect) LaTeX-dialect)
;;; comment.el ends here ;;; comment.el ends here
 End of changes. 4 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)