"Fossies" - the Fresh Open Source Software Archive

Member "auctex-12.3/style/algpseudocode.el" (18 Oct 2020, 1885 Bytes) of package /linux/misc/auctex-12.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lisp source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ;;; algpseudocode.el --- AUCTeX style for the (LaTeX) algpseudocode package
    2 
    3 ;; Copyright (C) 2020 Free Software Foundation, Inc.
    4 
    5 ;; Author: Uwe Brauer <oub@mat.ucm.es>
    6 ;; Created: 2020-01-26
    7 ;; Keywords: tex
    8 
    9 ;; This file is part of AUCTeX.
   10 
   11 ;; AUCTeX is free software; you can redistribute it and/or modify it
   12 ;; under the terms of the GNU General Public License as published by
   13 ;; the Free Software Foundation; either version 3, or (at your option)
   14 ;; any later version.
   15 
   16 ;; AUCTeX is distributed in the hope that it will be useful, but
   17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
   18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   19 ;; General Public License for more details.
   20 
   21 ;; You should have received a copy of the GNU General Public License
   22 ;; along with AUCTeX; see the file COPYING.  If not, write to the Free
   23 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
   24 ;; 02110-1301, USA.
   25 
   26 ;;; Commentary:
   27 ;; This file adds support for the algpseudocode package.
   28 
   29 ;;; Code:
   30 
   31 (defvar LaTeX-algpseudocode-package-options
   32   '("compatible" "nocompatible")
   33   "Package options for the algpseudocode package.")
   34 
   35 
   36 (TeX-add-style-hook
   37  "algpseudocode"
   38  (lambda ()
   39    (TeX-add-symbols
   40     '("algref" 2)
   41     '("algstore" 1)
   42     '("algrestore" 1)
   43     '("algstore*" 1)
   44     '("algrestore*" 1)
   45     '("Procedure" 2)
   46     '("Comment" 1)
   47     '("State" 0)
   48     '("While" 0)
   49     '("EndWhile" 0)
   50     '("EndProcedure" 0)
   51     '("Repeat" 0)
   52     '("Until" 0)
   53     '("For" 1)
   54     '("ForAll" 1)
   55     '("EndFor" 0)
   56     '("If" 1)
   57     '("ElsIf" 1)
   58     '("Else" 0)
   59     '("EndIf" 0)
   60     '("Function" 2)
   61     '("EndFunction" 0)
   62     '("Loop" 0)
   63     '("EndLoop" 0)
   64     '("Require" 0)
   65     '("Ensure" 0)
   66     '("State" 0)
   67     '("Statex" 0)
   68     '("Call" 0))
   69    (LaTeX-add-environments
   70     '("algorithmic" [ "Number" ]))
   71    LaTeX-dialect))
   72 
   73 ;;; algpseudocode.el ends here