aboutsummaryrefslogtreecommitdiff
path: root/data/meson.lang
blob: 2b156352ea77058115683835a9039b6df27b258d (plain)
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
<?xml version="1.0" encoding="UTF-8"?>

<language id="meson" _name="Meson" version="2.0" _section="Source">
  <metadata>
    <property name="globs">meson.build</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" />
  </styles>

  <definitions>
    <context id="meson">
      <include>
        <context id="string-multiline" style-ref="def:string">
          <start>'''</start>
          <end>'''</end>
        </context>
        
        <context id="string" end-at-line-end="true" style-ref="def:string">
          <start>'</start>
          <end>'</end>
        </context>

        <context id="comment" style-ref="def:comment">
          <start>#</start>
          <end>$</end>
        </context>

        <context id="keywords" style-ref="keyword">
          <keyword>if</keyword>
          <keyword>endif</keyword>
          <keyword>foreach</keyword>
          <keyword>endforeach</keyword>
        </context>
      </include>

    </context>
  </definitions>
</language>