Bug#607853: Bug#607851: gtksourceview2: Please add syntax highlighting file for Opal

2010-12-25 Thread Benjamin Drung
Am Donnerstag, den 23.12.2010, 17:12 + schrieb Emilio Pozuelo
Monfort:
 I'd rather they get added upstream and then we'll get them here. So if you 
 want 
 in Debian, ping upstream in the bug until they include it.

I have done what you wrote and the Opal syntax highlighting file is now
applied upstream [1]. It will be in the next release (next after
2.91.3). Therefore it will end up in gtksourceview3, but not in
gtksourceview2.

Attached the accepted version of opal.lang as patch for gtksourceview2.

[1] 
http://git.gnome.org/browse/gtksourceview/commit/?id=6e01813a9960481b423d9025e938c85aaefa4937

-- 
Benjamin Drung
Ubuntu Developer (www.ubuntu.com) | Debian Maintainer (www.debian.org)
Description: Add syntax highlighting file for Opal.
Author: Benjamin Drung bdr...@ubuntu.com
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=632935
Bug-Debian: http://bugs.debian.org/607851

--- /dev/null
+++ b/gtksourceview/language-specs/opal.lang
@@ -0,0 +1,343 @@
+?xml version=1.0 encoding=UTF-8?
+!--
+
+ This file is part of GtkSourceView
+
+ Authors: Alexander Eichner aeich...@freitagsrunde.org
+ Copyright (C) 2007 Alexander Eichner aeich...@freitagsrunde.org
+
+ GtkSourceView is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ GtkSourceView 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+--
+language id=opal _name=Opal version=2.0 _section=Sources
+  metadata
+property name=globs*.sign;*.impl/property
+property name=line-comment-start-- /property
+property name=block-comment-start/*/property
+property name=block-comment-end*//property
+  /metadata
+
+  styles
+style id=module-handler _name=Module Handler map-to=def:preprocessor/
+style id=comment _name=Comment map-to=def:comment/
+style id=common-defines _name=Common Defines map-to=def:special-constant/
+style id=error _name=Error map-to=def:error/
+style id=string _name=String map-to=def:string/
+style id=keyword _name=Keyword map-to=def:keyword/
+style id=boolean _name=Boolean value map-to=def:boolean/
+style id=decimal _name=Decimal number map-to=def:decimal/
+style id=type _name=Data Type map-to=def:type/
+style id=keysymbol _name=Keysymbol map-to=def:keyword/
+  /styles
+
+  definitions
+
+context id=comment style-ref=comment end-at-line-end=true class=comment class-disabled=no-spell-check
+  start-- /start
+  include
+context ref=def:in-line-comment/
+  /include
+/context
+
+context id=decimal style-ref=decimal
+  match(?lt;![\w\.])([1-9][0-9]*|0)[lL]?(?![\w\.])/match
+/context
+
+context id=comment-multiline style-ref=comment class=comment class-disabled=no-spell-check
+  start/\*/start
+  end\*//end
+  include
+context ref=def:in-comment/
+  /include
+/context
+
+context id=close-comment-outside-comment style-ref=error
+  match\*/(?!\*)/match
+/context
+
+context id=string style-ref=string end-at-line-end=true class=string class-disabled=no-spell-check
+  start/start
+  end/end
+/context
+
+context id=module-handler style-ref=module-handler
+  keywordIMPORT/keyword
+  keywordCOMPLETELY/keyword
+  keywordONLY/keyword
+/context
+
+context id=keywords style-ref=keyword
+  keywordALL/keyword
+  keywordAND/keyword
+  keywordANDIF/keyword
+  keywordANY/keyword
+  keywordAS/keyword
+  keywordASSERT/keyword
+  keywordAXM/keyword
+  keywordDATA/keyword
+  keywordDEF/keyword
+  keywordDERIVE/keyword
+  keywordDFD/keyword
+  keywordDESCRIMINATORS/keyword
+  keywordELSE/keyword
+  keywordEX/keyword
+  keywordEXTERNAL/keyword
+  keywordFI/keyword
+  keywordFIX/keyword
+  keywordFUN/keyword
+  keywordIF/keyword
+  keywordIMPLEMENTATION/keyword
+  keywordIMPLIES/keyword
+  keywordIN/keyword
+  keywordINHERIT/keyword
+  keywordINJECTIONS/keyword
+  keywordINTERFACE/keyword
+  keywordINTERNAL/keyword
+  keywordLAW/keyword
+  keywordLAZY/keyword
+  keywordLEFTASSOC/keyword
+  keywordLET/keyword
+  keywordMODULE/keyword
+  keywordNOT/keyword
+  keywordNOR/keyword
+  keywordOR/keyword
+  keywordORIF/keyword
+  keywordOTHERWISE/keyword
+  keywordPOST/keyword
+  keywordPRE/keyword
+  keywordPRED/keyword
+  keywordPRIORITY/keyword
+  

Bug#607853: Bug#607851: gtksourceview2: Please add syntax highlighting file for Opal

2010-12-23 Thread Emilio Pozuelo Monfort

tags 607851 upstream
tags 607853 upstream
thanks

On 22/12/10 23:52, Benjamin Drung wrote:

Please add the syntax highlighting file for Opal [1]. Quilt patch is attached.

Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=632935


I'd rather they get added upstream and then we'll get them here. So if you want 
in Debian, ping upstream in the bug until they include it.


Thanks,
Emilio



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org