summaryrefslogtreecommitdiffstats
path: root/kate/data/ld.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/ld.xml')
-rw-r--r--kate/data/ld.xml63
1 files changed, 32 insertions, 31 deletions
diff --git a/kate/data/ld.xml b/kate/data/ld.xml
index 29501d678..0f7a8aff5 100644
--- a/kate/data/ld.xml
+++ b/kate/data/ld.xml
@@ -1,38 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- GNU LD Linker Script syntax highlighter -->
-<language name="GNU Linker Script" section="Scripts" extensions="*.ld" version="2" kateversion="2.4" author="Lyle Putnam (lcputnam@gmail.com)" license="">
+<language name="GNU Linker Script" section="Scripts" extensions="*.ld" version="3" kateversion="2.4" author="Lyle Putnam (lcputnam@gmail.com)" license="">
<highlighting>
<list name="keywords">
- <item> AT </item>
- <item> ENTRY </item>
- <item> INPUT </item>
- <item> GROUP </item>
- <item> OUTPUT </item>
- <item> OUTPUT_ARCH </item>
- <item> OUTPUT_FORMAT </item>
- <item> SEARCH_DIR </item>
- <item> STARTUP </item>
- <item> TARGET </item>
+ <item>AT</item>
+ <item>ENTRY</item>
+ <item>INPUT</item>
+ <item>GROUP</item>
+ <item>OUTPUT</item>
+ <item>OUTPUT_ARCH</item>
+ <item>OUTPUT_FORMAT</item>
+ <item>SEARCH_DIR</item>
+ <item>STARTUP</item>
+ <item>TARGET</item>
</list>
<list name="functions">
- <item> ABSOLUTE </item>
- <item> ADDR </item>
- <item> ALIGN </item>
- <item> DATA_SEGMENT_ALIGN </item>
- <item> DATA_SEGMENT_END </item>
- <item> DATA_SEGMENT_RELRO_END </item>
- <item> DEFINED </item>
- <item> LOADADDR </item>
- <item> MAX </item>
- <item> MIN </item>
- <item> NEXT </item>
- <item> SIZEOF </item>
- <item> SIZEOF_HEADERS </item>
+ <item>ABSOLUTE</item>
+ <item>ADDR</item>
+ <item>ALIGN</item>
+ <item>DATA_SEGMENT_ALIGN</item>
+ <item>DATA_SEGMENT_END</item>
+ <item>DATA_SEGMENT_RELRO_END</item>
+ <item>DEFINED</item>
+ <item>LOADADDR</item>
+ <item>MAX</item>
+ <item>MIN</item>
+ <item>NEXT</item>
+ <item>SIZEOF</item>
+ <item>SIZEOF_HEADERS</item>
</list>
<list name="commands">
- <item> SECTIONS </item>
- <item> MEMORY </item>
+ <item>SECTIONS</item>
+ <item>MEMORY</item>
</list>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
@@ -42,11 +42,7 @@
<HlCOct attribute="Number" context="#stay" />
<HlCHex attribute="Number" context="#stay" />
<!-- Base 10 Integers may be suffixed with K, M or G to indicate size -->
- <Int attribute="Number" context="#stay">
- <StringDetect attribute="Number" context="#stay" String="K" insensitive="true" />
- <StringDetect attribute="Number" context="#stay" String="M" insensitive="true" />
- <StringDetect attribute="Number" context="#stay" String="G" insensitive="true" />
- </Int>
+ <Int attribute="Number" context="Int Suffixes"/>
<RegExpr attribute="Section Name" context="#stay" String="\.[\-_0-9a-zA-Z]+" />
<!-- "COMMON" and "/DISCARD/" are special section targets -->
<RegExpr attribute="Section Name" context="#stay" String="(COMMON|\/DISCARD\/)" />
@@ -55,6 +51,11 @@
<Detect2Chars attribute="Comment" context="comment" char="/" char1="*" beginRegion="Comment" />
<DetectChar attribute="String" context="string" char="&quot;" />
</context>
+ <context name="Int Suffixes" attribute="Number" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
+ <StringDetect attribute="Number" context="#pop" String="K" insensitive="true" />
+ <StringDetect attribute="Number" context="#pop" String="M" insensitive="true" />
+ <StringDetect attribute="Number" context="#pop" String="G" insensitive="true" />
+ </context>
<context name="comment" attribute="Comment" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment" />
</context>