a2ps-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: a2ps/sheets csharp.ssh,NONE,1.1.2.1 Makefile.am,1.1.1.1.2.1,1.1.1.1


From: Franck Lombardi <address@hidden>
Subject: CVS: a2ps/sheets csharp.ssh,NONE,1.1.2.1 Makefile.am,1.1.1.1.2.1,1.1.1.1.2.2 sheets.map,1.1.1.1.2.1,1.1.1.1.2.2
Date: Thu, 19 Sep 2002 11:23:47 -0400

Update of /cvsroot/a2ps/a2ps/sheets
In directory subversions:/tmp/cvs-serv8889/sheets

Modified Files:
      Tag: a2ps-4-1x
        Makefile.am sheets.map 
Added Files:
      Tag: a2ps-4-1x
        csharp.ssh 
Log Message:
Add new style sheet for C# language.



--- NEW FILE ---
# Style sheet for C#
# Copyright (c) 2002-2006 Karen Christenson
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# 1.0 Karen Christenson
# Implemented Class/Interface/Struct decl as operator

style "C#" is
version is 1.0
requires a2ps version 4.13
written by "Karen Christenson <address@hidden>"
documentation is
  "This style is for the .NET object-oriented language C#, and is based"
  "on the C# Language Specification published in 2002 by Microsoft in"
  "the MSDN library."
  "XML comments are mapped to strong comments, and any other comment is a plain"
  "comment."
  "The C style-sheet was not selected as an ancestor in order to treat"
  "a struct the same as a class or an interface.  The CPP style-sheet was not"
  "selected as an ancestor because C# set of preprocessor directives is much"
  "smaller."
  "Keywords, XML comments, preprocessor directives, label statements, and"
  "[] style attributes are high-lighted."
end documentation

first alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@"
second alphabet is
   "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._"

case sensitive

# Specifies primitive types, literals, and special variables.
keywords in Keyword are
   "base", "bool", "byte",
   "char",
   "decimal", "double",
   "enum",
   "false", "float",
   "int",
   "long",
   "null",
   "object",
   "sbyte", "short", "string",
   "this", "true", 
   "uint", "ulong", "ushort",
   "value", "void"
end keywords

# The remaining keywords (except for class, interface, and struct).
keywords in Keyword_strong are
   "abstract", "as",
   "break",
   "case", "catch", "checked", "const", "continue",
   "default", "delegate", "do",
   "else", "event", "explicit", "extern",
   "finally", "fixed", "for", "foreach",
   "get", "goto",
   "if", "implicit", "in", "internal", "is",
   "lock",
   "namespace", "new",
   "operator", "out", "override",
   "params", "private", "protected", "public",
   "readonly", "ref", "return",
   "sealed", "set", "sizeof", "stackalloc", "static", "switch",
   "throw", "try", "typeof",
   "unchecked", "unsafe", "using",
   "virtual", "volatile",
   "while"
end keywords

optional operators are
   -> \rightarrow,
   <<=,
   >>=,
   <= \leq,
   >= \geq
end operators

operators are
  # class/interface/struct declarations.
  (/(class|interface|struct)/   # keyword
   /([[:space:]]+)/                             # whitespace
   /([^[:space:]]+)/                    # class/interface/struct name
   \1 Keyword_strong, \2 Plain, \3 Label_strong),

   # [] attribute-section
   /^[[:space:]]*\\[[[:alpha:]_][^\]]*\\][[:space:]]*/ Label_strong,

   # this-access or base-access
   /(this|base)\./ Keyword,

  # preprocessor directives
  
/^[[:space:]]*#[[:space:]]*(define|e(l(if|se)|nd(|region|if)|rror)|if|line|warning|region|undef|warning)/
 Keyword

end operators

sequences are
    "/*" Comment Comment "*/" Comment,
    "//" Comment,
    "///" Comment,
    C-string,
        C-char
end sequences
end style

Index: Makefile.am
===================================================================
RCS file: /cvsroot/a2ps/a2ps/sheets/Makefile.am,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -C2 -r1.1.1.1.2.1 -r1.1.1.1.2.2
*** Makefile.am 18 Sep 2002 14:47:34 -0000      1.1.1.1.2.1
--- Makefile.am 19 Sep 2002 15:23:45 -0000      1.1.1.1.2.2
***************
*** 21,32 ****
  minor_sheets = \
  68000.ssh a2psrc.ssh asn1.ssh autoconf.ssh awk.ssh b.ssh bc.ssh               
\
! caml.ssh chlog.ssh cidl.ssh claire.ssh coqv.ssh csh.ssh dc_shell.ssh  \
! eps.ssh gmake.ssh haskell.ssh html.ssh idl.ssh initora.ssh is5rul.ssh \
! js.ssh lace.ssh lex.ssh lout.ssh maple.ssh matlab4.ssh mib.ssh mly.ssh        
\
! modula2.ssh modula3.ssh o2c.ssh oberon.ssh octave.ssh oracle.ssh      \
! plsql.ssh pov.ssh ppd.ssh ps.ssh prolog.ssh promela.ssh python.ssh    \
! rexx.ssh sather.ssh sdl88.ssh sed.ssh sml.ssh specc.ssh sql.ssh               
\
! sql92.ssh tclx.ssh tcsh.ssh tex.ssh texinfo.ssh tiger.ssh unity.ssh   \
! vba.ssh       verilog.ssh vhdl.ssh vrml.ssh vtcl.ssh yacc.ssh xs.ssh zsh.ssh
  
  if EXTENSIONS
--- 21,33 ----
  minor_sheets = \
  68000.ssh a2psrc.ssh asn1.ssh autoconf.ssh awk.ssh b.ssh bc.ssh               
\
! caml.ssh chlog.ssh cidl.ssh claire.ssh coqv.ssh csh.ssh csharp.ssh    \
! dc_shell.ssh eps.ssh gmake.ssh haskell.ssh html.ssh idl.ssh initora.ssh       
\
! is5rul.ssh js.ssh lace.ssh lex.ssh lout.ssh maple.ssh matlab4.ssh     \
! mib.ssh mly.ssh       modula2.ssh modula3.ssh o2c.ssh oberon.ssh octave.ssh   
\
! oracle.ssh plsql.ssh pov.ssh ppd.ssh ps.ssh prolog.ssh promela.ssh    \
! python.ssh rexx.ssh sather.ssh sdl88.ssh sed.ssh sml.ssh specc.ssh    \
! sql.ssh sql92.ssh tclx.ssh tcsh.ssh tex.ssh texinfo.ssh tiger.ssh     \
! unity.ssh vba.ssh verilog.ssh vhdl.ssh vrml.ssh vtcl.ssh yacc.ssh     \
! xs.ssh zsh.ssh
  
  if EXTENSIONS

Index: sheets.map
===================================================================
RCS file: /cvsroot/a2ps/a2ps/sheets/sheets.map,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -C2 -r1.1.1.1.2.1 -r1.1.1.1.2.2
*** sheets.map  18 Sep 2002 14:47:34 -0000      1.1.1.1.2.1
--- sheets.map  19 Sep 2002 15:23:45 -0000      1.1.1.1.2.2
***************
*** 181,184 ****
--- 181,187 ----
        /*.pdb/
  
+ # C# files
+ csharp:       /*.cs/
+ 
  # SpecC
  specc:        /*.sc/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]