summaryrefslogtreecommitdiffstats
path: root/kate/data/qmake.xml
blob: 821213a1456dc51e6b8f3902b38c5533f31cedf4 (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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="QMake" section="Other" extensions="*.pro;*.pri;*.prf;" mimetype="" version="1.2" kateversion="2.0" author="Milian Wolff (mail@milianw.de)" license="LGPL">

<highlighting>
  <list name="variables">
    <item>CONFIG</item>
    <item>DEFINES</item>
    <item>DESTDIR</item>
    <item>DLLDESTDIR</item>
    <item>FORMS</item>
    <item>HEADERS</item>
    <item>INCLUDEPATH</item>
    <item>INSTALLS</item>
    <item>LIBS</item>
    <item>OBJECTIVE_SOURCES</item>
    <item>OTHER_FILES</item>
    <item>OUT_PWD</item>
    <item>QMAKE_CXXFLAGS</item>
    <item>QMAKE_EXTRA_COMPILERS</item>
    <item>QMAKE_FILE_IN</item>
    <item>QMAKE_FILE_OUT</item>
    <item>QMAKE_LFLAGS</item>
    <item>QMAKE_LFLAGS_SONAME</item>
    <item>QMAKE_RPATHDIR</item>
    <item>QMAKE_SUBSTITUTES</item>
    <item>QT</item>
    <item>QT_CONFIG</item>
    <item>QT_MAJOR_VERSION</item>
    <item>QT_MINOR_VERSION</item>
    <item>QT_PATCH_VERSION</item>
    <item>RCC_DIR</item>
    <item>RESOURCES</item>
    <item>SOURCES</item>
    <item>SUBDIRS</item>
    <item>TARGET</item>
    <item>TEMPLATE</item>
    <item>UI_DIR</item>
    <item>MOC_DIR</item>
    <item>OBJECTS_DIR</item>
    <item>VPATH</item>
    <!--TODO: add all items from the right panel on
              http://doc.qt.nokia.com/stable/qmake-variable-reference.html
    -->
  </list>
  <list name="functions">
    <item>contains</item>
    <item>defineReplace</item>
    <item>defineTest</item>
    <item>equals</item>
    <item>error</item>
    <item>eval</item>
    <item>greaterThan</item>
    <item>include</item>
    <item>isEmpty</item>
    <item>isEqual</item>
    <item>message</item>
    <item>return</item>
    <item>unset</item>
  </list>
  <list name="systems">
    <item>build_pass</item>
    <item>debug</item>
    <item>debug_and_release</item>
    <item>linux</item>
    <item>macx</item>
    <item>msvc</item>
    <item>release</item>
    <item>unix</item>
    <item>win32</item>
  </list>
  <list name="keywords">
    <item>else</item>
    <item>for</item>
    <item>if</item>
  </list>

  <contexts>
    <context name="normal" attribute="Normal Text" lineEndContext="#stay">
      <keyword attribute="Predefined Variable" String="variables" />
      <keyword attribute="Function" String="functions" />
      <keyword attribute="System" String="systems" />
      <keyword attribute="Keyword" String="keywords" />
      <DetectChar char="#" attribute="Comment" context="Comment" />
      <RegExpr attribute="Variable" context="#stay" String="\$\$?[a-zA-Z0-9_]+" />
      <RegExpr attribute="Variable" context="#stay" String="\$\$\{[^\}]*\}" />
      <RegExpr attribute="Variable" context="#stay" String="\$\$\[[^\]]*\]" />
      <RegExpr attribute="Variable" context="#stay" String="\$\$\([^\)]*\)" />
      <Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="\" />
      <Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="&quot;" />
      <DetectChar char="&quot;" attribute="String" context="String" />
    </context>

    <context name="String" attribute="String" lineEndContext="#stay">
      <Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="\" />
      <Detect2Chars attribute="Backslash Code" context="#stay" char="\" char1="&quot;" />
      <DetectChar attribute="String" context="#pop" char="&quot;" />
    </context>
    <context name="Comment" attribute="Comment" lineEndContext="#pop">
      <DetectSpaces />
      <IncludeRules context="##Alerts" />
      <DetectIdentifier />
    </context>
  </contexts>

  <itemDatas>
    <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
    <itemData name="Predefined Variable" defStyleNum="dsDataType" bold="1" spellChecking="false" />
    <itemData name="Variable" defStyleNum="dsDataType" spellChecking="false" />
    <itemData name="Function" defStyleNum="dsFunction" spellChecking="false" />
    <itemData name="System" defStyleNum="dsOthers" spellChecking="false" />
    <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
    <itemData name="String" defStyleNum="dsString" spellChecking="false" />
    <itemData name="Backslash Code" defStyleNum="dsKeyword" bold="1" spellChecking="false" />
    <itemData name="Comment" defStyleNum="dsComment" />
  </itemDatas>
</highlighting>

<general>
  <comments>
      <comment name="singleLine" start="#" />
  </comments>
  <keywords casesensitive="1" />
</general>

</language>
<!-- kate: indent-width 2; -->