Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/lua.xml
Show All 37 Lines | 6 | <!-- | |||
---|---|---|---|---|---|
38 | - based on Lua 5.0.2 syntax | 38 | - based on Lua 5.0.2 syntax | ||
39 | - strings "[[ ]]" and single quoted strings | 39 | - strings "[[ ]]" and single quoted strings | ||
40 | - block comments | 40 | - block comments | ||
41 | - function, if/elseif/else, do-end chunks, comment blocks, strings using [[ ]] collapsable | 41 | - function, if/elseif/else, do-end chunks, comment blocks, strings using [[ ]] collapsable | ||
42 | - nil, false and true consided pseudo-variables (displayed as numbers) | 42 | - nil, false and true consided pseudo-variables (displayed as numbers) | ||
43 | - NOTE, FIXME, TODO alerts added on comments | 43 | - NOTE, FIXME, TODO alerts added on comments | ||
44 | - improved highlighting | 44 | - improved highlighting | ||
45 | --> | 45 | --> | ||
46 | <language name="Lua" version="4" indenter="lua" kateversion="5.0" section="Scripts" extensions="*.lua" mimetype="text/x-lua"> | 46 | <language name="Lua" version="5" indenter="lua" kateversion="5.0" section="Scripts" extensions="*.lua" mimetype="text/x-lua"> | ||
47 | <highlighting> | 47 | <highlighting> | ||
48 | <list name="keywords"> | 48 | <list name="keywords"> | ||
49 | <item>and</item> | 49 | <item>and</item> | ||
50 | <item>function</item> | 50 | <item>function</item> | ||
51 | <item>in</item> | 51 | <item>in</item> | ||
52 | <item>local</item> | 52 | <item>local</item> | ||
53 | <item>not</item> | 53 | <item>not</item> | ||
54 | <item>or</item> | 54 | <item>or</item> | ||
▲ Show 20 Lines • Show All 374 Lines • ▼ Show 20 Line(s) | 412 | <list name="deprecated"> | |||
429 | <item>string.gfind</item> | 429 | <item>string.gfind</item> | ||
430 | <item>table.foreach</item> | 430 | <item>table.foreach</item> | ||
431 | <item>table.foreachi</item> | 431 | <item>table.foreachi</item> | ||
432 | <item>table.getn</item> | 432 | <item>table.getn</item> | ||
433 | <item>table.setn</item> | 433 | <item>table.setn</item> | ||
434 | </list> | 434 | </list> | ||
435 | 435 | | |||
436 | <contexts> | 436 | <contexts> | ||
437 | <context name="Shebang" attribute="Comment" lineEndContext="Normal" fallthrough="true" fallthroughContext="Normal"> | 437 | <context name="Shebang" attribute="Comment" lineEndContext="Normal" lineEmptyContext="Normal" fallthrough="true" fallthroughContext="Normal"> | ||
438 | <Detect2Chars attribute="Comment" context="Comment" char="#" char1="!" column="0"/> | 438 | <Detect2Chars attribute="Comment" context="Comment" char="#" char1="!" column="0"/> | ||
439 | </context> | 439 | </context> | ||
440 | 440 | | |||
441 | <context name="Comment" attribute="Comment" lineEndContext="#pop"> | 441 | <context name="Comment" attribute="Comment" lineEndContext="#pop"> | ||
442 | </context> | 442 | </context> | ||
443 | 443 | | |||
444 | <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> | 444 | <context name="Normal" attribute="Normal Text" lineEndContext="#stay"> | ||
445 | <DetectSpaces /> | 445 | <DetectSpaces /> | ||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |