diff --git a/ChangeLog b/ChangeLog index 76fcd3340..ebffbcf1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-02-27 Juan C. Olivares + + * syntax/cs.syntax: New file. + * syntax/Syntax: Add cs.syntax. + * syntax/Makefile.am: Likewise. + 2003-02-27 Marco Ciampa * doc/it/mc.1.in: updated manual with -e switch description. diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 9e00d02ae..6f7a09e88 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -4,6 +4,7 @@ syntax_DATA = \ Syntax \ ada95.syntax \ c.syntax \ + cs.syntax \ changelog.syntax \ diff.syntax \ dos.syntax \ diff --git a/syntax/Syntax b/syntax/Syntax index 4019f9dcb..1f838eb56 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -77,6 +77,9 @@ include php.syntax file ..\*\\.(java|JAVA|Java|jav)$ Java\sProgram include java.syntax +file ..\*\\.(cs|CS)$ C\#\sProgram +include cs.syntax + file ..\*\\.(js|JS)$ JavaScript\sProgram include js.syntax diff --git a/syntax/cs.syntax b/syntax/cs.syntax new file mode 100644 index 000000000..6f6f2c0fe --- /dev/null +++ b/syntax/cs.syntax @@ -0,0 +1,145 @@ +# Modified from C highlight file by Juan C. Olivares + +context default + + keyword whole abstract yellow + keyword whole as yellow + keyword whole base yellow + keyword whole bool yellow + keyword whole break yellow + keyword whole byte yellow + keyword whole case yellow + keyword whole catch yellow + keyword whole char yellow + keyword whole checked yellow + keyword whole class white + keyword whole const yellow + keyword whole continue yellow + keyword whole decimal yellow + keyword whole default yellow + keyword whole delegate white + keyword whole do yellow + keyword whole double yellow + keyword whole else yellow + keyword whole enum white + keyword whole event yellow + keyword whole explicit yellow + keyword whole extern yellow + keyword whole false yellow + keyword whole finally yellow + keyword whole fixed yellow + keyword whole float yellow + keyword whole for yellow + keyword whole foreach yellow + keyword whole get brightgreen + keyword whole goto yellow + keyword whole if yellow + keyword whole implicit yellow + keyword whole in yellow + keyword whole int yellow + keyword whole interface yellow + keyword whole internal brightred + keyword whole is yellow + keyword whole lock yellow + keyword whole long yellow + keyword whole namespace white + keyword whole new yellow + keyword whole null yellow + keyword whole object yellow + keyword whole operator yellow + keyword whole out yellow + keyword whole override yellow + keyword whole params yellow + keyword whole private brightred + keyword whole protected yellow + keyword whole public brightred + keyword whole readonly yellow + keyword whole ref yellow + keyword whole return yellow + keyword whole sbyte yellow + keyword whole sealed yellow + keyword whole set brightgreen + keyword whole short yellow + keyword whole sizeof yellow + keyword whole stackalloc yellow + keyword whole static yellow + keyword whole string yellow + keyword whole struct white + keyword whole switch yellow + keyword whole this yellow + keyword whole throw yellow + keyword whole true yellow + keyword whole try yellow + keyword whole typeoff yellow + keyword whole uint yellow + keyword whole ulong yellow + keyword whole unchecked yellow + keyword whole unsafe yellow + keyword whole ushort yellow + keyword whole using brightcyan + keyword whole virtual yellow + keyword whole void yellow + keyword whole volatile yellow + keyword whole while yellow + + + keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta + + keyword /\* brown + keyword \*/ brown + keyword // brown + + keyword '\\\{"abtnvfr\}' brightgreen + keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen + keyword '\\'' brightgreen + keyword '\\\\' brightgreen + keyword '\\0' brightgreen + keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen + + keyword > yellow + keyword < yellow + keyword \+ yellow + keyword - yellow + keyword \* yellow + keyword / yellow + keyword % yellow + keyword = yellow + keyword != yellow + keyword == yellow + keyword { brightcyan + keyword } brightcyan + keyword ( brightcyan + keyword ) brightcyan + keyword [ brightcyan + keyword ] brightcyan + keyword , brightcyan + keyword : brightcyan + keyword ? brightcyan + keyword ; brightmagenta + +context exclusive /\* \*/ brown + spellcheck + +context exclusive // \n brown + spellcheck + +context linestart # \n brightred + keyword \\\n yellow + keyword /\**\*/ brown + keyword "+" red + +context " " green + spellcheck + keyword \\" brightgreen + keyword %% brightgreen + keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen + keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diu\} brightgreen + keyword %\[hl\]n brightgreen + keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen + keyword %[*] brightgreen + keyword %c brightgreen + keyword %p brightgreen + keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen + keyword \\\\ brightgreen + keyword \\' brightgreen + keyword \\\{abtnvfr\} brightgreen