/usr/share/bluefish/bflang/json.bflang2 is in bluefish-data 2.2.10-1.
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 | <?xml version="1.0"?>
<!--
Bluefish HTML Editor
json.bflang2 $Revision: 1 $
Copyright (C) 2012 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="JSON" version="2.0">
<header>
<mime type="application/json" />
<mime type="text/plain?json" />
<option name="load_reference" default="1" />
<option name="show_in_menu" default="1" />
<highlight name="json-brackets" style="brackets" />
<highlight name="json-escapechar" style="preprocessor" />
<highlight name="json-string" style="string" />
<highlight name="json-value" style="value" />
</header>
<properties>
<smartindent characters="{[" />
<smartoutdent characters="]}" />
<default_spellcheck enabled="0" />
</properties>
<definition>
<context id="c.json.main" symbols=" 	 {}:,"">
<element id="e.json.object" pattern="{" starts_block="1" highlight="json-brackets">
<context symbols=" 	 {}[]:,"">
<element pattern=""" highlight="json-string">
<context symbols="\"" highlight="json-string">
<element id="e.json.string.escapechar" pattern="\\([\]|/|b|f|n|r|t|u[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]|")" is_regex="1" highlight="json-escapechar" />
<element pattern=""" ends_context="1" highlight="json-string" />
</context>
</element>
<element pattern=":">
<context id="c.json.value" symbols=" 	 {}[]:,"">
<element id="e.json.string" pattern=""" highlight="json-string">
<context symbols="\"" highlight="json-string">
<element idref="e.json.string.escapechar" />
<element pattern=""" ends_context="1" highlight="json-string" />
</context>
</element>
<element id="e.json.number" pattern="-?(0|[1-9][0-9]*)(|\.[0-9]+)(|[eE][+-]?[0-9]+)" is_regex="1" highlight="json-value" />
<element idref="e.json.object" />
<element id="e.json.true" pattern="true" highlight="json-value" />
<element id="e.json.false" pattern="false" highlight="json-value" />
<element id="e.json.null" pattern="null" highlight="json-value" />
<element id="e.json.array" pattern="[" starts_block="1" highlight="json-brackets">
<context symbols=" 	 {}[]:,"">
<element idref="e.json.string" />
<element idref="e.json.number" />
<element idref="e.json.object" />
<element idref="e.json.true" />
<element idref="e.json.false" />
<element idref="e.json.null" />
<element idref="e.json.array" />
<element pattern="]" ends_block="1" blockstartelement="e.json.array" ends_context="1" highlight="json-brackets" />
</context>
</element>
<element pattern="," ends_context="1" />
<element pattern="}" ends_block="1" blockstartelement="e.json.object" ends_context="2" highlight="json-brackets" />
</context>
</element>
<element pattern="}" ends_block="1" blockstartelement="e.json.object" ends_context="1" highlight="json-brackets" />
</context>
</element>
<element idref="e.json.array" />
</context>
</definition>
</bflang>
|