syntax highlighting choice improvement
- From: Oswald Buddenhagen <ossi kde org>
- To: mc-devel gnome org
- Subject: syntax highlighting choice improvement
- Date: Fri, 23 May 2008 18:04:40 +0200
hi,
to avoid absurd situations like makefile.c being highlighted as a
makefile, i moved the basename-matching rules to the end of the Syntax
file.
possibly the combined rules should be split into extension-only and
filename-only to avoid the critical rules fighting each other, too
(e.g., configure.in.c).
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Confusion, chaos, panic - my work here is done.
Index: Syntax
===================================================================
RCS file: /sources/mc/mc/syntax/Syntax,v
retrieving revision 1.39
diff -u -r1.39 Syntax
--- Syntax 2 Nov 2007 14:10:27 -0000 1.39
+++ Syntax 23 May 2008 16:00:09 -0000
@@ -55,9 +55,6 @@
file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
include xml.syntax
-file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|Kbuild)$ Makefile
-include makefile.syntax
-
file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
include pascal.syntax
@@ -121,12 +123,6 @@
file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
include spec.syntax
-file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
-include changelog.syntax
-
-file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
-include m4.syntax
-
file ..\*\\.(bat|cmd)$ DOS\sBatch
include dos.syntax
@@ -145,6 +141,15 @@
file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
include idl.syntax
+file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
+include m4.syntax
+
+file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
+include changelog.syntax
+
+file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|Kbuild)$ Makefile
+include makefile.syntax
+
file Don_t_match_me Mail\sfolder ^From\s
include mail.syntax
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]