From cfbf39a89edeba0c59cfb2f8a62a5567c0b8d2a0 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 18 Jul 2002 19:33:27 +0000 Subject: [PATCH] * syntax/changelog.syntax: Highlight functions without filenames. * syntax/Syntax: Match *ChangeLog*. --- ChangeLog | 4 ++++ syntax/Syntax | 2 +- syntax/changelog.syntax | 16 +++++++++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e2663d8c..b39620e58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-07-18 Pavel Roskin + * syntax/changelog.syntax: Highlight functions without + filenames. + * syntax/Syntax: Match *ChangeLog*. + * syntax/c.syntax: Reenable highlighting for "/" and preserve highlighting for "//" comments by using exclusive context. * syntax/java.syntax: Likewise. diff --git a/syntax/Syntax b/syntax/Syntax index af11b007c..b498dbc7d 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -96,7 +96,7 @@ include octave.syntax file ..\*\\.(sql|SQL)$ SQL\sProgram include sql.syntax -file .\*ChangeLog$ GNU\sDistribution\sChangeLog\sFile +file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile include changelog.syntax file .\*[Mm]akefile[\\\.a-z]\*$ Makefile diff --git a/syntax/changelog.syntax b/syntax/changelog.syntax index fc28ef4cc..e92405160 100644 --- a/syntax/changelog.syntax +++ b/syntax/changelog.syntax @@ -1,9 +1,19 @@ context default - keyword wholeright +() brightmagenta/23 spellcheck -context linestart \t\*\s : brightcyan/17 -context linestart \s\s\s\s\s\s\s\s\*\s : brightcyan/17 +context linestart \t \n\n + keyword wholeright +() brightmagenta/23 + keyword \*\s*: brightcyan/17 + keyword (*): cyan/16 + keyword (*)\{\s\}[*]: cyan/16 + keyword whole \* brightcyan/17 + +context linestart \s\s\s\s\s\s\s\s \n\n + keyword wholeright +() brightmagenta/23 + keyword \*\s*: brightcyan/17 + keyword (*): cyan/16 + keyword (*)\{\s\}[*]: cyan/16 + keyword whole \* brightcyan/17 context linestart 19+-+\s \n yellow/24 keyword <+> brightred/19