/usr/share/medit-1/language-specs/nsis.lang is in medit 1.0.3-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 87 88 | <?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of GtkSourceView
Author: Yevgen Muntyan <muntyan@tamu.edu>
Copyright (C) 2008 Yevgen Muntyan
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="nsis" _name="NSIS" version="2.0" _section="Others">
<metadata>
<property name="globs">*.nsi;*.nsh</property>
<property name="line-comment-start">;</property>
</metadata>
<styles>
<style id="operator" _name="Operator" map-to="def:operator"/>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="variable" _name="Variable" map-to="makefile:variable"/>
</styles>
<definitions>
<context id="operator" style-ref="operator">
<prefix>!</prefix>
<keyword>define</keyword>
<keyword>include</keyword>
<keyword>insertmacro</keyword>
<keyword>ifdef</keyword>
<keyword>endif</keyword>
</context>
<define-regex id="identifier">[\w_][\w\d_]*</define-regex>
<context id="variable" style-ref="variable">
<match>\$(\%{identifier}|\{\%{identifier}\}|\(\^\%{identifier}\))</match>
</context>
<context id="variable-assignment">
<match>^\s*(!define)\s+(\%{identifier})</match>
<include>
<context sub-pattern="1" style-ref="operator"/>
<context sub-pattern="2" style-ref="variable"/>
</include>
</context>
<context id="string" style-ref="string" class="string" class-disabled="no-spell-check">
<start>"</start>
<end>"</end>
<include>
<context ref="variable"/>
</include>
</context>
<context id="comment" style-ref="comment" end-at-line-end="true">
<start>;</start>
<include>
<context ref="def:in-comment"/>
</include>
</context>
<context id="nsis" class="no-spell-check">
<include>
<context ref="operator"/>
<context ref="variable"/>
<context ref="variable-assignment"/>
<context ref="comment"/>
<context ref="string"/>
</include>
</context>
</definitions>
</language>
|