# Style sheet for Objective C
# Copyright (c) 1988-1993 Miguel Santana
# Copyright (c) 1995-1999 Akim Demaille, Miguel Santana
# $Id: objc.ssh,v 1.1.1.1.2.1 2007/12/29 01:58:31 mhatta Exp $
#

#
# 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, see
# <https://www.gnu.org/licenses/gpl-3.0.html>.
#

## 1.0 Paul Shum <pshum@ali.bc.ca>
# Created
## 1.1 Akim Demaille <akim@freefriends.org>
# Made it inherit from c.ssh

style "Objective C" is
written by "Paul Shum <pshum@ali.bc.ca>"
version is 1.2
requires a2ps version 4.9.7

first alphabet is
   "@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_#$%"
second alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_#$%"
case sensitive

ancestors are
   c
end ancestors

keywords in Keyword are
   id
end keywords

keywords in Keyword_strong are
   @interface, @end, @implementation, @protocol, @class, @public,
   @protected, @private, "in", out, inout, bycopy, oneway, self, _cmd,
   super, @selector, @encode, @defs
end keywords

sequences are
    /^\\+/ Keyword_strong Keyword_strong /[{;]/ Plain,
    /^-/   Keyword_strong Keyword_strong /[{;]/ Plain
end sequences

end style
