From: David Hansen <david.hansen@gmx.net>
Subject: Small gud.el patch
Date: Thu, 03 Aug 2006 17:23:33 +0200 [thread overview]
Message-ID: <87k65pvo5m.fsf@robotron.kosmorama> (raw)
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
Hello,
this patch fixes two problems:
1. Wrong coloring of the 'd' in 'end' (syntactic keywords
gave the 'd' comment end syntax).
2. "end" after a "document" is now colored as a keyword.
David
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gud.diff --]
[-- Type: text/x-patch, Size: 844 bytes --]
--- /home/dhansen/cvs-src/emacs/lisp/progmodes/gud.el 2006-07-20 23:23:10.000000000 +0200
+++ gud.el 2006-08-03 17:18:52.000000000 +0200
@@ -3175,12 +3175,12 @@
("\\$\\(\\w+\\)" (1 font-lock-variable-name-face))
("^\\s-*\\(\\w\\(\\w\\|\\s_\\)*\\)" (1 font-lock-keyword-face))))
-;; FIXME: The keyword "end" associated with "document"
-;; should have font-lock-keyword-face (currently font-lock-doc-face).
+(defun gdb-script-font-lock-end-of-document (limit)
+ (re-search-forward "\\(\n\\)end\\>" limit t))
+
(defvar gdb-script-font-lock-syntactic-keywords
'(("^document\\s-.*\\(\n\\)" (1 "< b"))
- ;; It would be best to change the \n in front, but it's more difficult.
- ("^en\\(d\\)\\>" (1 "> b"))))
+ (gdb-script-font-lock-end-of-document (1 "> b"))))
(defun gdb-script-font-lock-syntactic-face (state)
(cond
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2006-08-03 15:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-03 15:23 David Hansen [this message]
2006-08-03 18:31 ` Small gud.el patch Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k65pvo5m.fsf@robotron.kosmorama \
--to=david.hansen@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.