/usr/share/gtksourceview-2.0/language-specs/ocl.lang is in libgtksourceview2.0-common 2.10.5-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 124 125 126 127 128 129 130 131 132 133 134 135 136 | <?xml version="1.0" encoding="UTF-8"?>
<!--
OCL (Object Constraint Language) GtkSourceview language definition
based on GtkSourceview C language definition.
Author: Mario Carrión <mario@monouml.org>
Copyright (C) 2007, Mario Carrión, <mario@monouml.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<!--
To get more information about OCL see:
http://www.omg.org/technology/documents/formal/ocl.htm
-->
<language id="ocl" _name="OCL" version="2.0" _section="Others">
<metadata>
<property name="mimetypes">text/x-ocl</property>
<property name="globs">*.ocl</property>
<property name="line-comment-start">--</property>
</metadata>
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="operators" _name="Type Operators" map-to="def:keyword"/>
<style id="type" _name="Data Type" map-to="def:type"/>
<style id="operation" _name="Operation operator" map-to="def:keyword"/>
</styles>
<definitions>
<context id="ocl" class="no-spell-check">
<include>
<!-- Comments -->
<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>
<!-- Strings -->
<context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
</context>
<context ref="def:decimal"/>
<context ref="def:float"/>
<!-- Keywords -->
<context id="keywords" style-ref="keyword">
<!--
UML OCL2 Specification Page 29 and some other
that aren't "defined" as keywords
-->
<keyword>and</keyword>
<keyword>attr</keyword>
<keyword>body</keyword>
<keyword>context</keyword>
<keyword>derive</keyword>
<keyword>def</keyword>
<keyword>endpackage</keyword>
<keyword>false</keyword>
<keyword>in</keyword>
<keyword>init</keyword>
<keyword>inv</keyword>
<keyword>let</keyword>
<keyword>oper</keyword>
<keyword>package</keyword>
<keyword>post</keyword>
<keyword>pre</keyword>
<keyword>self</keyword>
<keyword>true</keyword>
</context>
<!-- Operators used on all types -->
<context id="operators" style-ref="operators">
<keyword>abs</keyword>
<keyword>and</keyword>
<keyword>concat</keyword>
<keyword>if</keyword>
<keyword>implies</keyword>
<keyword>else</keyword>
<keyword>endif</keyword>
<keyword>floor</keyword>
<keyword>then</keyword>
<keyword>or</keyword>
<keyword>not</keyword>
<keyword>size</keyword>
<keyword>substring</keyword>
<keyword>xor</keyword>
</context>
<!-- Operations allowed on Collections -->
<context id="operators-operations" style-ref="operation">
<keyword>select</keyword>
<keyword>exists</keyword>
<keyword>forAll</keyword>
<keyword>notEmpty</keyword>
<keyword>reject</keyword>
</context>
<!-- Default data types -->
<context id="types" style-ref="type">
<keyword>Boolean</keyword>
<keyword>boolean</keyword>
<keyword>Integer</keyword>
<keyword>int</keyword>
<keyword>Real</keyword>
<keyword>real</keyword>
<keyword>String</keyword>
<keyword>string</keyword>
</context>
</include>
</context>
</definitions>
</language>
|