Merge lp:~denim2x/gtksourceview/gtksourceview into lp:gtksourceview

Proposed by denim2x
Status: Needs review
Proposed branch: lp:~denim2x/gtksourceview/gtksourceview
Merge into: lp:gtksourceview
Diff against target: 114 lines (+109/-0)
1 file modified
data/language-specs/mustache.lang (+109/-0)
To merge this branch: bzr merge lp:~denim2x/gtksourceview/gtksourceview
Reviewer Review Type Date Requested Status
Cassidy James Blaede Pending
Review via email: mp+262969@code.launchpad.net

Commit message

Created mustache.lang

Description of the change

Created mustache.lang for fixing bug #1390577

To post a comment you must log in.
Revision history for this message
Robert Roth (evfool) wrote :

I'm not sure merging into lp:gtksourceview makes much sense, the best would be to have this included upstream in GNOME's gtksourceview, from where it would get synced (sometime in the future) to lp:gtksourceview automatically. As Cassidy is the reviewer who can decide this, I'll leave this to him, just commenting with my two cents.

Unmerged revisions

4217. By denim2x

Created mustache.lang

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'data/language-specs/mustache.lang'
2--- data/language-specs/mustache.lang 1970-01-01 00:00:00 +0000
3+++ data/language-specs/mustache.lang 2015-06-25 12:12:42 +0000
4@@ -0,0 +1,109 @@
5+<?xml version="1.0" encoding="UTF-8"?> <!--
6+
7+ ╔══════════════════════════════════════════════════════════╗
8+ ║ Author: denim2x <https://github.com/denim2x> ║
9+ ╟──────────────────────────────────────────────────────────╢
10+ ║ This file provides syntax highlighting for the Mustache ║
11+ ║ language within editors based on GtkSourceView; based on ║
12+ ║ asp.lang <https://goo.gl/1lrGu6>. ║
13+ ╚══════════════════════════════════════════════════════════╝
14+
15+-->
16+<language id="mustache" _name="Mustache" version="2.0" _section="Markup">
17+ <metadata>
18+ <property name="mimetypes">text/x-handlebars-template;text/html</property>
19+ <property name="globs">*.handlebars;*.hbs;*.hgn;*.hjs;*.mu;*.mustache;*.stache</property>
20+ <property name="block-comment-start">{{!</property>
21+ <property name="block-comment-end">}}</property>
22+ </metadata>
23+
24+ <styles>
25+ <style id="comment" _name="Comment" map-to="def:comment" />
26+ <style id="delimiter" _name="Delimiter" map-to="def:type" />
27+ <style id="key" _name="Key" map-to="def:identifier" />
28+ <style id="operator" _name="Operator" map-to="def:operator" />
29+ <style id="partial" _name="Partial" map-to="def:preprocessor" />
30+ <style id="section" _name="Section" map-to="def:statement" />
31+ <style id="tag" _name="Tag" map-to="def:keyword" />
32+ <style id="variable" _name="Variable" map-to="def:function" />
33+ <style id="unescaped" _name="Unescaped" map-to="def:constant" />
34+ </styles>
35+
36+ <definitions>
37+ <context id="comment" style-ref="comment">
38+ <start>\{\{\!</start>
39+ <end>\}\}</end>
40+ <include>
41+ <context ref="def:in-comment"/>
42+ </include>
43+ </context>
44+
45+ <context id="delimiter" style-ref="delimiter">
46+ <start>\{\{=</start>
47+ <end>=\}\}</end>
48+ <include>
49+ <context ref="def:string"/>
50+ </include>
51+ </context>
52+
53+ <context id="key" style-ref="key">
54+ <match>[a-zA-Z_][a-zA-Z0-9_]*</match>
55+ </context>
56+
57+ <context id="partial" style-ref="partial">
58+ <start>\{\{&gt;</start>
59+ <end>\}\}</end>
60+ <include>
61+ <context ref="key"/>
62+ </include>
63+ </context>
64+
65+ <context id="section" style-ref="section">
66+ <start>\{\{([#^/])</start>
67+ <end>(\?)?\}\}</end>
68+ <include>
69+ <context sub-pattern="0" where="start" style-ref="operator"/>
70+ <context sub-pattern="0" where="end" style-ref="operator"/>
71+ <context ref="key"/>
72+ </include>
73+ </context>
74+
75+ <context id="unescaped" style-ref="unescaped">
76+ <start>\{\{\{</start>
77+ <end>\}\}\}</end>
78+ <include>
79+ <context ref="key"/>
80+ </include>
81+ </context>
82+
83+ <context id="unescaped-amp" style-ref="unescaped">
84+ <start>\{\{&amp;</start>
85+ <end>\}\}</end>
86+ <include>
87+ <context ref="key"/>
88+ </include>
89+ </context>
90+
91+ <context id="variable" style-ref="variable">
92+ <start>\{\{</start>
93+ <end>\}\}</end>
94+ <include>
95+ <context ref="key"/>
96+ </include>
97+ </context>
98+
99+ <context id="mustache" class="no-spell-check">
100+ <include>
101+ <context ref="comment" />
102+ <context ref="delimiter" />
103+ <context ref="partial" />
104+ <context ref="section" />
105+ <context ref="unescaped" />
106+ <context ref="unescaped-amp" />
107+ <context ref="variable" />
108+ <context ref="html:html" />
109+ </include>
110+ </context>
111+
112+ </definitions>
113+</language>
114\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: