summaryrefslogtreecommitdiffstats
path: root/kate/data/lua.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/lua.xml')
-rw-r--r--kate/data/lua.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/kate/data/lua.xml b/kate/data/lua.xml
index 6de4c8a17..52442de05 100644
--- a/kate/data/lua.xml
+++ b/kate/data/lua.xml
@@ -35,7 +35,7 @@
- improved highlighting
-->
-<language name="Lua" version="1.03" kateversion="2.4" section="Scripts" extensions="*.lua" mimetype="text/x-lua">
+<language name="Lua" version="1.04" indenter="lua" kateversion="2.4" section="Scripts" extensions="*.lua" mimetype="text/x-lua">
<highlighting>
<list name="keywords">
<item> and </item>
@@ -213,6 +213,10 @@
</list>
<contexts>
+ <context name="Base" attribute="Comment" lineEndContext="Normal">
+ <RegExpr attribute="Comment" context="Normal" String="#!.*$" column="0" />
+ <RegExpr attribute="Comment" context="Normal" String="^.*$" lookAhead="true" />
+ </context>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
<IncludeRules context="##DoxygenLua" />
<keyword attribute="Error" context="#stay" String="deprecated" />
@@ -297,4 +301,4 @@
</comments>
<keywords casesensitive="1" weakDeliminator="&#46;" additionalDeliminator="&quot;"/>
</general>
-</language> \ No newline at end of file
+</language>