[PATCH] Re: Small bug in mcedit
- From: Leonard den Ottolander <leonard den ottolander nl>
- To: Florin Asavoaie <florin flachi net>
- Cc: MC development <mc-devel gnome org>
- Subject: [PATCH] Re: Small bug in mcedit
- Date: Sun, 16 Jul 2006 13:17:26 +0200
Hello Florin,
On Mon, 2006-07-03 at 13:42 +0300, Florin Asavoaie wrote:
> <form name="<?= ?>"><?php echo "this code is not highlighted correctly"; ?>
> <form name="<?= ?> "><?php echo "This code is highlighted perfectly."; ?>
This can be sort of fixed by using "context exclusive" for quotes. See
the attached patch.
However, because the default context is not exclusive the stickiness
still remains in this case:
<form name="<?= ?>"<?php echo " this code is not highlighted
correctly"; ?>>
But as you probably want to embed a space after the quote in such cases
I suppose this fix is still rather useful.
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
--- php.syntax.000 2006-03-18 21:45:47.000000000 +0100
+++ php.syntax 2006-07-16 03:18:19.000000000 +0200
@@ -8355,6 +8355,8 @@ context default
keyword , brightcyan
keyword : brightcyan
keyword ; brightmagenta
+ keyword " green
+ keyword ' brightgreen
context exclusive ?> <? cyan
keyword whole &*; brightgreen
@@ -8375,7 +8377,7 @@ context exclusive // \n brown
context linestart # \n brown
spellcheck
-context " " green
+context exclusive " " green
spellcheck
keyword \\" brightgreen
keyword \\\n brightgreen
@@ -8391,6 +8393,6 @@ context " " green
keyword \\' brightgreen
keyword \\\{abtnvfr\} brightgreen
-context ' ' brightgreen
+context exclusive ' ' brightgreen
spellcheck
keyword \\' brightcyan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]