From 121dbd2b1b090ccdf8e6679c3c25fce75d21c390 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Wed, 27 Oct 2004 13:29:51 +0000 Subject: [PATCH] * syntax/aspx.syntax: Add syntax file for ASP.NET. * syntax/Syntax: Likewise. * syntax/Makefile.am: Likewise. --- ChangeLog | 6 ++++++ syntax/Makefile.am | 1 + syntax/Syntax | 3 +++ syntax/aspx.syntax | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 syntax/aspx.syntax diff --git a/ChangeLog b/ChangeLog index 83e54b8da..c69d5d148 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-27 Juan C. Olivares + + * syntax/aspx.syntax: Add syntax file for ASP.NET. + * syntax/Syntax: Likewise. + * syntax/Makefile.am: Likewise. + 2004-10-27 Pavel S. Shirshov * TODO: Move entry 'Broken pipe warning...' to 4.6.2 TODO list. diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 52855ba78..298a12574 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -3,6 +3,7 @@ syntaxdir = $(pkgdatadir)/syntax syntax_DATA = \ Syntax \ ada95.syntax \ + aspx.syntax \ c.syntax \ cs.syntax \ changelog.syntax \ diff --git a/syntax/Syntax b/syntax/Syntax index 41e1a3b5f..c67381196 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -89,6 +89,9 @@ include cs.syntax file ..\*\\.(js|JS)$ JavaScript\sProgram include js.syntax +file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile +include aspx.syntax + file ..\*\\.st$ SmallTalk\sProgram include smalltalk.syntax diff --git a/syntax/aspx.syntax b/syntax/aspx.syntax new file mode 100644 index 000000000..df205cf33 --- /dev/null +++ b/syntax/aspx.syntax @@ -0,0 +1,49 @@ +# ASP.NET syntax highlighting +# +# Author: Juan C. Olivares +# http://www.juancri.com + +context default + keyword "*" lightgray + keyword '*' lightgray + + spellcheck + +context brightgreen + spellcheck + +context yellow + keyword '+' brightcyan + keyword "+" brightcyan + keyword \( lightgray + keyword \) lightgray + keyword \* lightgray + keyword \? lightgray + keyword \+ lightgray + keyword \| lightgray + keyword \, lightgray + spellcheck + +context <% %> brightgreen + keyword Application white + keyword Assembly white + keyword Control white + keyword Implements white + keyword Import white + keyword Inherits white + keyword OutputCache white + keyword Page white + keyword Reference white + keyword Register white + keyword WebService white + keyword \s+\= yellow + keyword '*' brightcyan + keyword "*" brightcyan + spellcheck + +context < > white + keyword \s+\= yellow + keyword "server" brightgreen + keyword '*' brightcyan + keyword "*" brightcyan + spellcheck