/usr/share/bluefish/bflang/octave.bflang2 is in bluefish-data 2.2.7-2.
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 | <?xml version="1.0"?>
<!--
Bluefish HTML Editor
octave language file $Revision: 7425 $
Copyright (C 2008-2011 Olivier Sessink
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 of the License, 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. If not, see <http://www.gnu.org/licenses/>.
-->
<bflang name="Octave" version="2.0" >
<header>
<mime type="application/x-octave"/>
<mime type="text/plain?m"/>
<option name="load_reference" default="1"/>
<option name="load_completion" default="1"/>
<option name="show_in_menu" default="0"/>
<option name="Parentheses block_foldable" default="0" description="Allow folding of the Parentheses block" />
<highlight name="keyword" style="keyword" />
<highlight name="type" style="special-keyword" />
<highlight name="brackets" style="brackets" />
<highlight name="comment" style="comment" />
<highlight name="string" style="string" />
<highlight name="value" style="value" />
</header>
<properties>
<comment id="cm.hashcomment" type="line" start="#" />
<comment id="cm.percentcomment" type="line" start="%" />
<smartindent characters="{" />
<smartoutdent characters="}" />
</properties>
<definition>
<context symbols=" .;(){}[]:\"\\',><*&^%!+=-|/?#	 " commentid_line="cm.hashcomment" commentid_block="none">
<element pattern=""" highlight="string">
<context symbols="\"" highlight="string">
<element pattern="\"" highlight="string" />
<element pattern=""" highlight="string" ends_context="1" />
</context>
</element>
<element pattern="'" highlight="string">
<context symbols="\'" highlight="string">
<element pattern="\\." is_regex="1" highlight="string" />
<element pattern="'" highlight="string" ends_context="1" />
</context>
</element>
<element id="e.lbrace" pattern="{" starts_block="1" mayfold="1" highlight="brackets" />
<element pattern="}" ends_block="1" blockstartelement="e.lbrace" highlight="brackets" />
<element id="e.lbracket" pattern="[" starts_block="1" highlight="brackets" />
<element pattern="]" ends_block="1" blockstartelement="e.lbracket" highlight="brackets" />
<element id="e.lparen" pattern="(" starts_block="1" highlight="brackets" block_name="Parentheses block" />
<element pattern=")" ends_block="1" blockstartelement="e.lparen" highlight="brackets" />
<element id="e.linecomment" pattern="(#|%)" is_regex="1" highlight="comment">
<!-- dos has \r\n -> we should never end a pattern between these two chars -->
<context symbols=" " highlight="comment">
<element pattern="( | | )" is_regex="1" highlight="comment" ends_context="1" />
</context>
</element>
<element pattern="[0-9]+\.*[0-9]*" is_regex="1" highlight="value"/>
<group highlight="keyword">
<autocomplete enable="1" />
<element pattern="if"/>
<element pattern="else"/>
<element pattern="for"/>
<element pattern="endfor"/>
<element pattern="endif"/>
<element pattern="global"/>
<element pattern="switch"/>
<element pattern="while"/>
<element pattern="do-until"/>
<element pattern="break"/>
<element pattern="continue"/>
<element pattern="unwind_protect"/>
<element pattern="try"/>
<element id="e.function" pattern="function" starts_block="1"/>
<element pattern="endfunction" ends_block="1" blockstartelement="e.function"/>
</group>
<group highlight="type">
<autocomplete enable="1" />
<element pattern="text"/>
<element pattern="string"/>
<element pattern="longint"/>
<element pattern="boolean"/>
<element pattern="byte"/>
<element pattern="char"/>
<element pattern="word"/>
<element pattern="integer"/>
<element pattern="real"/>
</group>
</context>
</definition>
</bflang>
|