summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-08 16:11:13 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-08 16:11:13 +0100
commit711d16c7d728891f2b2f022140cb357de7332f3c (patch)
tree6cf0482b104169dcea9b097040d1ced046a2bbc5
parentccbbb84ff3a98df6d60cf403808763264214abdc (diff)
eo: highlight const as KEYWORD2 only when followed by parens
This allows us to distinguish (and colorize) constants and const attribute.
-rw-r--r--eo/eo.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/eo/eo.xml b/eo/eo.xml
index 052248f..20a8db0 100644
--- a/eo/eo.xml
+++ b/eo/eo.xml
@@ -95,6 +95,7 @@
95 <KEYWORD1>set</KEYWORD1> 95 <KEYWORD1>set</KEYWORD1>
96 <KEYWORD1>type</KEYWORD1> 96 <KEYWORD1>type</KEYWORD1>
97 <KEYWORD1>values</KEYWORD1> 97 <KEYWORD1>values</KEYWORD1>
98 <KEYWORD1>var</KEYWORD1>
98 99
99 <KEYWORD4>constructor</KEYWORD4> 100 <KEYWORD4>constructor</KEYWORD4>
100 <KEYWORD4>data</KEYWORD4> 101 <KEYWORD4>data</KEYWORD4>
@@ -104,7 +105,7 @@
104 <KEYWORD4>legacy_prefix</KEYWORD4> 105 <KEYWORD4>legacy_prefix</KEYWORD4>
105 <KEYWORD4>return</KEYWORD4> 106 <KEYWORD4>return</KEYWORD4>
106 107
107 <KEYWORD2>const</KEYWORD2> 108 <KEYWORD1>const</KEYWORD1>
108 <KEYWORD2>own</KEYWORD2> 109 <KEYWORD2>own</KEYWORD2>
109 <KEYWORD2>virtual</KEYWORD2> 110 <KEYWORD2>virtual</KEYWORD2>
110 111
@@ -160,6 +161,8 @@
160 <LITERAL2>false</LITERAL2> 161 <LITERAL2>false</LITERAL2>
161 <LITERAL2>null</LITERAL2> 162 <LITERAL2>null</LITERAL2>
162 </KEYWORDS> 163 </KEYWORDS>
164
165 <SEQ_REGEXP TYPE="KEYWORD2" AT_WORD_START="TRUE">const(?=\s*\()</SEQ_REGEXP>
163 </RULES> 166 </RULES>
164 167
165 <RULES SET="IMPLEMENTS_R"> 168 <RULES SET="IMPLEMENTS_R">