From 43b82434a33b85f28032fce9b21664ecb06de3a6 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 18 Sep 2002 22:25:24 +0000 Subject: [PATCH] * syntax/Syntax: Remove gobledy_gook at the beginning. Move rules for syntax files ... * syntax/syntax.syntax: ... here. Add "linestart" for "file" and "include" keywords. * syntax/Makefile.am: Add syntax.syntax. --- ChangeLog | 8 +++++ syntax/Makefile.am | 1 + syntax/Syntax | 83 +------------------------------------------- syntax/syntax.syntax | 72 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 82 deletions(-) create mode 100644 syntax/syntax.syntax diff --git a/ChangeLog b/ChangeLog index c132adba9..7333c94a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-09-18 Pavel Roskin + + * syntax/Syntax: Remove gobledy_gook at the beginning. Move + rules for syntax files ... + * syntax/syntax.syntax: ... here. Add "linestart" for "file" + and "include" keywords. + * syntax/Makefile.am: Add syntax.syntax. + 2002-09-17 Vlad Romanenko * syntax/js.syntax: Advanced number highlighting. diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 307cc2d87..d61d8883d 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -31,6 +31,7 @@ syntax_DATA = \ spec.syntax \ sql.syntax \ swig.syntax \ + syntax.syntax \ tcl.syntax \ texinfo.syntax \ unknown.syntax \ diff --git a/syntax/Syntax b/syntax/Syntax index 63fa6065c..9f7c915ce 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -17,16 +17,6 @@ # brightcyan # white -file gobledy_gook #\sHelp\ssupport\sother\sfile\stypes -context default -file gobledy_gook #\sby\scoding\srules\sin\s~/.cedit/syntax. -context default -file gobledy_gook #\sSee\sman/syntax\sin\sthe\ssource\sdistribution -context default -file gobledy_gook #\sand\sconsult\sthe\sman\spage. -context default - - file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s include diff.syntax @@ -121,78 +111,7 @@ file Don_t_match_me Mail\sfolder ^From\s include mail.syntax file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s - -context default - keyword whole spellch\eck yellow/24 - keyword whole keyw\ord yellow/24 - keyword whole whole\[\t\s\]l\inestart brightcyan/17 - keyword whole whole\[\t\s\]l\inestart brightcyan/17 - keyword whole wh\oleleft\[\t\s\]l\inestart brightcyan/17 - keyword whole wh\oleright\[\t\s\]l\inestart brightcyan/17 - keyword whole l\inestart\[\t\s\]wh\ole - keyword whole l\inestart\[\t\s\]wh\ole - keyword whole l\inestart\[\t\s\]wh\oleleft - keyword whole l\inestart\[\t\s\]wh\oleright - keyword wholeleft whole\s brightcyan/17 - keyword wholeleft whole\t brightcyan/17 - keyword whole wh\oleleft brightcyan/17 - keyword whole wh\oleright brightcyan/17 - keyword whole lin\[e\]start brightcyan/17 - keyword whole c\ontext\[\t\s\]exclusive brightred/18 - keyword whole c\ontext\[\t\s\]default brightred/18 - keyword whole c\ontext brightred/18 - keyword whole wh\olechars\[\t\s\]left brightcyan/17 - keyword whole wh\olechars\[\t\s\]right brightcyan/17 - keyword whole wh\olechars brightcyan/17 - keyword whole f\ile brightgreen/6 - keyword whole in\clude brightred/18 - - keyword whole 0 lightgray/0 blue/26 - keyword whole 1 lightgray/1 blue/26 - keyword whole 2 lightgray/2 blue/26 - keyword whole 3 lightgray/3 blue/26 - keyword whole 4 lightgray/4 blue/26 - keyword whole 5 lightgray/5 blue/26 - keyword whole 6 lightgray/6 - keyword whole 7 lightgray/7 - keyword whole 8 lightgray/8 - keyword whole 9 lightgray/9 - keyword whole 10 lightgray/10 - keyword whole 11 lightgray/11 - keyword whole 12 lightgray/12 - keyword whole 13 lightgray/13 - keyword whole 14 lightgray/14 - keyword whole 15 lightgray/15 - keyword whole 16 lightgray/16 - keyword whole 17 lightgray/17 - keyword whole 18 lightgray/18 - keyword whole 19 lightgray/19 - keyword whole 20 lightgray/20 - keyword whole 21 lightgray/21 - keyword whole 22 lightgray/22 - keyword whole 23 lightgray/23 - keyword whole 24 lightgray/24 - keyword whole 25 lightgray/25 - keyword whole 26 lightgray/26 - - keyword wholeleft black\/ black/0 - keyword wholeleft red\/ red/DarkRed - keyword wholeleft green\/ green/green3 - keyword wholeleft brown\/ brown/saddlebrown - keyword wholeleft blue\/ blue/blue3 - keyword wholeleft magenta\/ magenta/magenta3 - keyword wholeleft cyan\/ cyan/cyan3 - keyword wholeleft lightgray\/ lightgray/lightgray - keyword wholeleft gray\/ gray/gray - keyword wholeleft brightred\/ brightred/red - keyword wholeleft brightgreen\/ brightgreen/green1 - keyword wholeleft yellow\/ yellow/yellow - keyword wholeleft brightblue\/ brightblue/blue1 - keyword wholeleft brightmagenta\/ brightmagenta/magenta - keyword wholeleft brightcyan\/ brightcyan/cyan1 - keyword wholeleft white\/ white/26 - -context linestart # \n brown/22 +include syntax.syntax file .\* unknown include unknown.syntax diff --git a/syntax/syntax.syntax b/syntax/syntax.syntax new file mode 100644 index 000000000..e4a3ffd96 --- /dev/null +++ b/syntax/syntax.syntax @@ -0,0 +1,72 @@ +context default + keyword whole spellch\eck yellow/24 + keyword whole keyw\ord yellow/24 + keyword whole whole\[\t\s\]l\inestart brightcyan/17 + keyword whole whole\[\t\s\]l\inestart brightcyan/17 + keyword whole wh\oleleft\[\t\s\]l\inestart brightcyan/17 + keyword whole wh\oleright\[\t\s\]l\inestart brightcyan/17 + keyword whole l\inestart\[\t\s\]wh\ole + keyword whole l\inestart\[\t\s\]wh\ole + keyword whole l\inestart\[\t\s\]wh\oleleft + keyword whole l\inestart\[\t\s\]wh\oleright + keyword wholeleft whole\s brightcyan/17 + keyword wholeleft whole\t brightcyan/17 + keyword whole wh\oleleft brightcyan/17 + keyword whole wh\oleright brightcyan/17 + keyword whole lin\[e\]start brightcyan/17 + keyword whole c\ontext\[\t\s\]exclusive brightred/18 + keyword whole c\ontext\[\t\s\]default brightred/18 + keyword whole c\ontext brightred/18 + keyword whole wh\olechars\[\t\s\]left brightcyan/17 + keyword whole wh\olechars\[\t\s\]right brightcyan/17 + keyword whole wh\olechars brightcyan/17 + keyword whole linestart f\ile brightgreen/6 + keyword whole linestart in\clude brightred/18 + + keyword whole 0 lightgray/0 blue/26 + keyword whole 1 lightgray/1 blue/26 + keyword whole 2 lightgray/2 blue/26 + keyword whole 3 lightgray/3 blue/26 + keyword whole 4 lightgray/4 blue/26 + keyword whole 5 lightgray/5 blue/26 + keyword whole 6 lightgray/6 + keyword whole 7 lightgray/7 + keyword whole 8 lightgray/8 + keyword whole 9 lightgray/9 + keyword whole 10 lightgray/10 + keyword whole 11 lightgray/11 + keyword whole 12 lightgray/12 + keyword whole 13 lightgray/13 + keyword whole 14 lightgray/14 + keyword whole 15 lightgray/15 + keyword whole 16 lightgray/16 + keyword whole 17 lightgray/17 + keyword whole 18 lightgray/18 + keyword whole 19 lightgray/19 + keyword whole 20 lightgray/20 + keyword whole 21 lightgray/21 + keyword whole 22 lightgray/22 + keyword whole 23 lightgray/23 + keyword whole 24 lightgray/24 + keyword whole 25 lightgray/25 + keyword whole 26 lightgray/26 + + keyword wholeleft black\/ black/0 + keyword wholeleft red\/ red/DarkRed + keyword wholeleft green\/ green/green3 + keyword wholeleft brown\/ brown/saddlebrown + keyword wholeleft blue\/ blue/blue3 + keyword wholeleft magenta\/ magenta/magenta3 + keyword wholeleft cyan\/ cyan/cyan3 + keyword wholeleft lightgray\/ lightgray/lightgray + keyword wholeleft gray\/ gray/gray + keyword wholeleft brightred\/ brightred/red + keyword wholeleft brightgreen\/ brightgreen/green1 + keyword wholeleft yellow\/ yellow/yellow + keyword wholeleft brightblue\/ brightblue/blue1 + keyword wholeleft brightmagenta\/ brightmagenta/magenta + keyword wholeleft brightcyan\/ brightcyan/cyan1 + keyword wholeleft white\/ white/26 + +context linestart # \n brown/22 +