syntax small fixes
- From: Dmitry Alexeyev <dmi_a qnx org ru>
- To: mc-devel gnome org
- Subject: syntax small fixes
- Date: Tue, 23 Dec 2003 15:50:34 +0300
Hello!
Here are small fixes for syntax/.
php.synatx: remove duplicate mail keyword, added two new words
spec.syntax: Url, and encoding in summary
sql.syntax: some keywords added
syntax.c: fix mcedit crash if .syntax file has more than 1024 keywords
Syntax: highlight *.h.in as *.h, *.spec.in as *.spec, *.hxx as *.h
FAQ: smally typo fix
WBR,
Dmitry
--- php.syntax.orig 2003-03-15 07:41:20 +0300
+++ php.syntax 2003-12-23 15:42:22 +0300
@@ -255,6 +255,7 @@
keyword whole fwrite yellow
keyword whole get_all_headers yellow
keyword whole get_browser yellow
+ keyword whole get_class yellow
keyword whole get_cfg_var yellow
keyword whole get_current_user yellow
keyword whole get_html_translation_table yellow
@@ -464,7 +465,6 @@
keyword whole magic_quotes_gpc yellow
keyword whole magic_quotes_runtime yellow
keyword whole mail yellow
- keyword whole mail yellow
keyword whole mailparse_determine_best_xfer_encoding yellow
keyword whole mailparse_msg_create yellow
keyword whole mailparse_msg_extract yellow
@@ -846,6 +846,7 @@
keyword whole str_pad yellow
keyword whole str_repeat yellow
keyword whole str_replace yellow
+ keyword whole strcasecmp yellow
keyword whole strchr yellow
keyword whole strcmp yellow
keyword whole strcoll yellow
--- spec.syntax.orig 2003-03-06 16:48:24 +0300
+++ spec.syntax 2003-12-17 12:49:05 +0300
@@ -34,9 +34,11 @@
keyword whole Summary: green
keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]): green
keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ\]): green
+ keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ\].\[ABCDEFGHIJKLMNOPQRSTUVWXYZ-1234567890\]): green
keyword whole Vendor: green
keyword whole Version: green
keyword whole URL: green
+ keyword whole Url: green
keyword whole linestart %build red
keyword whole linestart %clean red
--- sql.syntax.orig 2003-03-31 20:27:54 +0400
+++ sql.syntax 2003-12-04 12:30:20 +0300
@@ -59,6 +59,7 @@
keyword whole CURSOR yellow
keyword whole DATABASE yellow
keyword whole DATE yellow
+ keyword whole DATETIME yellow
keyword whole DAY yellow
keyword whole DEALLOCATE yellow
keyword whole DEC yellow
@@ -213,6 +214,7 @@
keyword whole TIMESTAMP yellow
keyword whole TIMEZONE_HOUR yellow
keyword whole TIMEZONE_MINUTE yellow
+ keyword whole TINYINT yellow
keyword whole TO yellow
keyword whole TRAILING yellow
keyword whole TRANSACTION yellow
@@ -222,8 +224,11 @@
keyword whole UNION yellow
keyword whole UNIQUE yellow
keyword whole UNKNOWN yellow
+ keyword whole UNSIGNED yellow
keyword whole UPDATE yellow
keyword whole USAGE yellow
+ keyword whole USE yellow
+ keyword whole USER yellow
keyword whole USING yellow
keyword whole VALUE yellow
keyword whole VALUES yellow
@@ -237,7 +242,6 @@
keyword whole WORK yellow
keyword whole WRITE yellow
keyword whole YEAR yellow
- keyword whole USER yellow
keyword whole ZONE yellow
keyword whole absolute yellow
@@ -294,6 +298,7 @@
keyword whole current_user yellow
keyword whole cursor yellow
keyword whole date yellow
+ keyword whole datetime yellow
keyword whole day yellow
keyword whole deallocate yellow
keyword whole dec yellow
@@ -444,6 +449,7 @@
keyword whole timestamp yellow
keyword whole timezone_hour yellow
keyword whole timezone_minute yellow
+ keyword whole tinyint yellow
keyword whole to yellow
keyword whole trailing yellow
keyword whole transaction yellow
@@ -453,8 +459,10 @@
keyword whole union yellow
keyword whole unique yellow
keyword whole unknown yellow
+ keyword whole unsigned yellow
keyword whole update yellow
keyword whole usage yellow
+ keyword whole use yellow
keyword whole using yellow
keyword whole value yellow
keyword whole values yellow
@@ -521,6 +529,7 @@
spellcheck
context ' ' green
+ keyword \\' green
context " " green
# Beckticks are used to escape reserved words in MySQL
--- Syntax.orig 2003-05-15 02:30:04 +0400
+++ Syntax 2003-12-17 12:51:38 +0300
@@ -65,7 +65,7 @@
file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
include texinfo.syntax
-file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX)$ C/C\+\+\sProgram
+file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h\.in)$ C/C\+\+\sProgram
include c.syntax
file ..\*\\.[fF]$ Fortran\sProgram
@@ -101,7 +101,7 @@
file ..\*\\.(sql|SQL)$ SQL\sProgram
include sql.syntax
-file ..\*\\.spec$ RPM\sSpecfile
+file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
include spec.syntax
file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
--- syntax.c.orig 2003-10-29 11:54:48 +0300
+++ syntax.c 2003-12-04 14:28:32 +0300
@@ -800,6 +800,8 @@
struct key_word *k;
if (num_words == -1)
break_a;
+ if (num_words >= MAX_WORDS_PER_CONTEXT)
+ break;
check_a;
k = r[num_contexts - 1]->keyword[num_words] = g_malloc0 (sizeof (struct key_word));
if (!strcmp (*a, "whole")) {
--- FAQ.orig 2003-09-23 09:33:15 +0400
+++ FAQ 2003-12-03 19:37:02 +0300
@@ -695,7 +695,7 @@
8.1 When I try pasting to the internal editor, it indents the amount of
indenting increases with each line!
- Either turn of 'Return does autoindent' in the editor options or
+ Either turn off 'Return does autoindent' in the editor options or
update GNU Midnight Commander to version 4.6.0 or above - it doesn't
autoindent when you are holding Shift.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]