[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39277: 26.3; Tcl font lock does not understand quoting
From: |
Andreas Schwab |
Subject: |
bug#39277: 26.3; Tcl font lock does not understand quoting |
Date: |
Tue, 27 Oct 2020 09:51:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
On Okt 26 2020, mvar wrote:
> diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
> index 33aad2d39f..5dd02c1367 100644
> --- a/lisp/progmodes/tcl.el
> +++ b/lisp/progmodes/tcl.el
> @@ -410,7 +410,8 @@ tcl-font-lock-keywords
> (defconst tcl-syntax-propertize-function
> (syntax-propertize-rules
> ;; Mark the few `#' that are not comment-markers.
> - ("[^;[{ \t\n][ \t]*\\(#\\)" (1 ".")))
> + ("[^;[{ \t\n][ \t]*\\(#\\)" (1 "."))
> + ((concat "\\_<" (regexp-opt tcl-builtin-list t) "\\_>"
> "\s*{\\([^}].*\\)}") (2 "_")))
> "Syntactic keywords for `tcl-mode'.")
>
> ;; FIXME need some way to recognize variables because array refs look
> @@ -506,6 +507,7 @@ tcl-set-font-lock-keywords
> ;; number of "namespace::" qualifiers. A leading "::" refers
> ;; to the global namespace.
> '("\\${\\([^}]+\\)}" 1 font-lock-variable-name-face)
> + '("{\\([^}]+\\)}" 1 font-lock-string-face)
That mishandles nested or quoted braces.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- bug#39277: 26.3; Tcl font lock does not understand quoting, mvar, 2020/10/26
- bug#39277: (no subject), Lars Ingebrigtsen, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting,
Andreas Schwab <=
- bug#39277: 26.3; Tcl font lock does not understand quoting, Stefan Monnier, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting, Lars Ingebrigtsen, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting, mvar, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting, Lars Ingebrigtsen, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting, Stefan Monnier, 2020/10/27
- bug#39277: 26.3; Tcl font lock does not understand quoting, Stefan Monnier, 2020/10/29
- bug#39277: 26.3; Tcl font lock does not understand quoting, Lars Ingebrigtsen, 2020/10/30
- bug#39277: 26.3; Tcl font lock does not understand quoting, mvar, 2020/10/31
- bug#39277: 26.3; Tcl font lock does not understand quoting, Stefan Monnier, 2020/10/31