File: elixir-eex.xml

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (60 lines) | stat: -rw-r--r-- 2,948 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language [
  <!ENTITY identifier "[a-z][a-zA-Z0-9_]*[!?]?">
]>
<language author="Jade Pfeiffer (jade@pfeiffer.codes)"
          extensions="*.eex"
          indenter="none"
          kateversion="5.79"
          license="MIT"
          mimetype="text/x-elixir+eex"
          name="Elixir/EEx"
          section="Scripts"
          style="eex"
          version="1">
  <highlighting>
    <contexts>
      <context attribute="Normal Text" lineEndContext="#stay" name="Text">
        <!-- Search document using only 2 characters before matching -->
        <Detect2Chars char="&lt;" char1="%" context="Tag" lookAhead="true"/>
      </context>
      <context attribute="Normal Text" name="Tag">
        <!-- Comments: they are discarded from source -->
        <StringDetect String="&lt;%!--" attribute="Comment" context="#pop!Comment" beginRegion="comment" />
        <!-- EEx Quotation: returns the contents inside the tag as is -->
        <StringDetect String="&lt;%%" attribute="Quotation" context="#pop!Quotation" />
        <!-- Elixir expression: executes code and prints result -->
        <StringDetect String="&lt;%=" attribute="Tag" context="#pop!Expression" />
        <!-- Additional tags that are supported but don't have special meaning by default -->
        <StringDetect String="&lt;%|" attribute="Tag" context="#pop!Expression" />
        <StringDetect String="&lt;%/" attribute="Tag" context="#pop!Expression" />
        <!-- Elixir Expression: executes code but discards output -->
        <Detect2Chars char="&lt;" char1="%" attribute="Tag" context="#pop!Expression" />
      </context>
      <context attribute="Normal Text" lineEndContext="#stay" name="Expression">
        <Detect2Chars char="%" char1="&gt;" attribute="Tag" context="#pop"/>
        <RegExpr String="@&identifier;" attribute="Assigns" context="#stay" />
        <IncludeRules context="Normal##Elixir" />
      </context>
      <context attribute="Quotation" lineEndContext="#stay" name="Quotation">
        <Detect2Chars char="%" char1="&gt;" attribute="Quotation" context="#pop"/>
      </context>
      <context attribute="Comment" lineEndContext="#stay" name="Comment">
        <StringDetect String="--%&gt;" attribute="Comment" context="#pop" endRegion="comment" />
      </context>
    </contexts>
    <itemDatas>
      <itemData defStyleNum="dsNormal"         name="Normal Text" spellChecking="false"/>
      <itemData defStyleNum="dsBuiltIn"        name="Tag"/>
      <itemData defStyleNum="dsVerbatimString" name="Quotation"/>
      <itemData defStyleNum="dsComment"        name="Comment"/>
      <itemData defStyleNum="dsFunction"       name="Assigns"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="multiLine" start="&lt;%!--" end="--%&gt;" region="comment" />
    </comments>
  </general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->