/usr/share/a2ps/sheets/csharp.ssh is in a2ps 1:4.14-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | # 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 3, 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 <kchristenson@mac.com>"
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
|