language-support.org (2366B)
1 * Python 2 ** Fix builtin/keyword fontification for Python 3 3 E.g. =print= became a builtin, =file= is no longer one. 4 Cf. [[https://debbugs.gnu.org/43298][bug#43298]]. 5 *** TODO add fontification tests 6 *** TODO have dedicated font-lock styles for Python 2, 3 and "mixed" 7 Default to "mixed" (rely on tests to ensure user-visible change). 8 **** TODO create font-lock styles 9 **** TODO create variable to choose style 10 Users could customize it or set it with directory-local variables. 11 *** TODO add heuristic to pick the "right" style 12 13 14 * Shell scripts 15 ** Fix builtin/keyword fontification 16 - =continue= and =break= are /builtins/. 17 ** Fontify variables within strings 18 E.g. ="an ${expression} that should be highlighted"=. 19 ** Do not highlight single-quoted command substitutions 20 E.g. ='this $(call) should not be highlighted'=. 21 22 23 * TeX 24 ** electric-pair-mode and $inline math$ 25 e-p-m inserts a closing $ after point, but inserts a new pair instead 26 of overwriting when pressing $ again. 27 ** AUCTeX 28 *** electric-pair-mode does not work 29 **** pressing ="= on active region does not surround it with quotes even with electric-pair-mode 30 TeX-insert-quote erases the region and inserts =``= instead. 31 **** pressing =$= inserts a single $ 32 *** =catcode`$= starts a math environment 33 Minimal example: 34 35 #+begin_src latex 36 \documentclass{article} 37 38 \usepackage{fancyvrb} 39 \usepackage{listings} 40 \usepackage{xcolor} 41 42 \lstset{ 43 fancyvrb=true 44 } 45 46 \begin{document} 47 48 \begin{Verbatim}[ 49 commandchars=\\\{\}, 50 codes={\catcode`$=3}, 51 formatcom={\lstset{fancyvrb=false}} 52 ] 53 Things increased: \textcolor{red}{+32.05%} (189818 $\nearrow$ 250657) 54 Things decreased: \textcolor{green}{-49.22%} (514 $\searrow$ 261) 55 \end{Verbatim} 56 57 \end{document} 58 #+end_src 59 60 Can workaround it with =\catcode36= instead of =\catcode`$=. 61 *** saving does not add a final newline 62 *** TeX-auto-write does not handle absent parent folders 63 E.g. =.auctex/auto=. 64 *** faces 65 It would be nice if AUCTeX defined more faces, inheriting from the 66 ones it currently uses, so that users could set them independently. 67 **** description labels 68 Currently using font-lock-variable-name-face. 69 **** texttt 70 Currently using font-lock-type-face. 71 **** footnote 72 Currently using font-lock-constant-face. 73 **** macros 74 Maybe font-latex-sedate-face should be moved before 75 font-lock-keyword-face? Otherwise if the latter has a foreground, the 76 former has no effect.