summaryrefslogtreecommitdiff
path: root/elpa/auctex-13.1.3/style/fvextra.el
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-05-17 07:07:37 -0400
committermattkae <mattkae@protonmail.com>2022-05-17 07:07:37 -0400
commitbecff06c71d277647eda4378203d03ab36e141eb (patch)
treea1f73bba3676f34e0faf76764f5de963321f5576 /elpa/auctex-13.1.3/style/fvextra.el
parent3f4a0d5370ae6c34afe180df96add3b8522f4af1 (diff)
Evil mode and latex support
Diffstat (limited to 'elpa/auctex-13.1.3/style/fvextra.el')
-rw-r--r--elpa/auctex-13.1.3/style/fvextra.el159
1 files changed, 159 insertions, 0 deletions
diff --git a/elpa/auctex-13.1.3/style/fvextra.el b/elpa/auctex-13.1.3/style/fvextra.el
new file mode 100644
index 0000000..3109216
--- /dev/null
+++ b/elpa/auctex-13.1.3/style/fvextra.el
@@ -0,0 +1,159 @@
+;;; fvextra.el --- AUCTeX style for `fvextra.sty' (v1.4) -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2017--2021 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash@gnu.org>
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2017-03-05
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING. If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `fvextra.sty' (v1.4) from 2019/02/04.
+;; `fvextra.sty' is part of TeXLive.
+
+;;; Code:
+
+(require 'tex)
+(require 'latex)
+
+;; Needed for compiling `cl-pushnew':
+(eval-when-compile
+ (require 'cl-lib))
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
+(declare-function LaTeX-color-definecolor-list "color" ())
+(declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
+(declare-function LaTeX-fancyvrb-key-val-options "fancyvrb" ())
+
+(defvar LaTeX-fvextra-key-val-options
+ '(;; 3 General options
+ ("beameroverlays" ("true" "false"))
+ ("curlyquotes" ("true" "false"))
+ ("extra" ("true" "false"))
+ ("fontencoding" (;; Reset to default document font encoding
+ "none"
+ ;; 128+ glyph encodings (text)
+ "OT1" "OT2" "OT3" "OT4" "OT6"
+ ;; 256 glyph encodings (text)
+ "T1" "T2A" "T2B" "T2C" "T3" "T4" "T5"
+ ;; 256 glyph encodings (text extended)
+ "X2"
+ ;; Other encodings
+ "LY1" "LV1" "LGR"))
+ ("highlightcolor")
+ ("highlightlines")
+ ("linenos" ("true" "false"))
+ ("mathescape" ("true" "false"))
+ ("numberfirstline" ("true" "false"))
+ ("numbers" ("none" "left" "right" "both"))
+ ("retokenize" ("true" "false"))
+ ("space" ("\\textvisiblespace"))
+ ("spacecolor" ("none"))
+ ("stepnumberfromfirst" ("true" "false"))
+ ("stepnumberoffsetvalues" ("true" "false"))
+ ("tab" ("\\FancyVerbTab"))
+ ("tabcolor" ("none"))
+ ;; 7.1 Line breaking options
+ ("breakafter" ("none"))
+ ("breakaftergroup" ("true" "false"))
+ ("breakaftersymbolpre")
+ ("breakaftersymbolpost")
+ ("breakanywhere" ("true" "false"))
+ ("breakanywheresymbolpre")
+ ("breakanywheresymbolpost")
+ ("breakautoindent" ("true" "false"))
+ ("breakbefore")
+ ("breakbeforegroup" ("true" "false"))
+ ("breakbeforesymbolpre")
+ ("breakbeforesymbolpost")
+ ("breakindent")
+ ("breakindentnchars")
+ ("breaklines" ("true" "false"))
+ ("breaksymbol")
+ ("breaksymbolleft")
+ ("breaksymbolright")
+ ("breaksymbolindent")
+ ("breaksymbolindentnchars")
+ ("breaksymbolindentleft")
+ ("breaksymbolindentleftnchars")
+ ("breaksymbolindentright")
+ ("breaksymbolindentrightnchars")
+ ("breaksymbolsep")
+ ("breaksymbolsepnchars")
+ ("breaksymbolsepleft")
+ ("breaksymbolsepleftnchars")
+ ("breaksymbolsepright")
+ ("breaksymbolseprightnchars"))
+ "Key=value options for fvextra macros and environments.")
+
+(TeX-add-style-hook
+ "fvextra"
+ (lambda ()
+
+ ;; Run the style hook for "fancyvrb"
+ (TeX-run-style-hooks "fancyvrb")
+
+ (TeX-add-symbols
+ ;; 4.1 Inline formatting with \fvinlineset
+ '("fvinlineset" (TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)))
+
+ ;; 4.2 Line and text formatting
+ "FancyVerbFormatText"
+
+ ;; 6 New commands and environments
+ ;; 6.1 \EscVerb
+ '("EscVerb"
+ [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)] "Text")
+ '("EscVerb*"
+ [TeX-arg-key-val (LaTeX-fancyvrb-key-val-options)] "Text")
+
+ ;; 7.3.2 Breaks within macro arguments
+ "FancyVerbBreakStart"
+ "FancyVerbBreakStop"
+
+ ;; 7.3.3 Customizing break behavior
+ "FancyVerbBreakAnywhereBreak"
+ "FancyVerbBreakBeforeBreak"
+ "FancyVerbBreakAfterBreak")
+
+ ;; Add \EscVerb*? to `LaTeX-verbatim-macros-with-braces-local':
+ (add-to-list 'LaTeX-verbatim-macros-with-braces-local
+ "EscVerb" t)
+ (add-to-list 'LaTeX-verbatim-macros-with-braces-local
+ "EscVerb*" t)
+
+ ;; Fontification
+ (when (and (fboundp 'font-latex-add-keywords)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("fvinlineset" "{"))
+ 'function)
+ (font-latex-add-keywords '(("EscVerb" "*["))
+ 'textual)))
+ TeX-dialect)
+
+(defvar LaTeX-fvextra-package-options nil
+ "Package options for the fvextra package.")
+
+;;; fvextra.el ends here