Skip to content

Commit

Permalink
Kate highlight syntax rules update (mini fix of label Arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
ped7g committed Jan 12, 2020
1 parent ee0745a commit 78bb396
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions asm-z80-sj.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
sjasmplus z00m's variant: https://github.com/z00m128/sjasmplus
Created: Peter Helcmanovsky <ped@7gods.org>
Version: 0.9 11/01/2020
Version: 0.9.1 12/01/2020
To install locally for your KDE5 desktop environment, copy the XML file into:
~/.local/share/org.kde.syntax-highlighting/syntax/
Expand All @@ -15,6 +15,9 @@ Changelog:
// dd/mm/yyyy: version x.y (keep changelog in descending order)
// what was modified
12/01/2020: version 0.9.1
+ fix after-label argument order of rules to work better with numeric constants
11/01/2020: version 0.9
+ new directives added (MMU, CSPECTMAP, SAVEDEV)
+ new logic to deal with "label defl/=/equ expression" start of line (not perfect)
Expand Down Expand Up @@ -80,7 +83,7 @@ TODO missing things:
- when more finished, try to propose to upstream: https://github.com/KDE/syntax-highlighting/tree/master/data/syntax
-->
<language name="Z80 (sjasmplus)" section="Assembler" version="9" kateversion="5.0" extensions="*.asm;*.a80;*.s" mimetype="" author="Peter Helcmanovsky (ped@7gods.org)" license="MIT">
<language name="Z80 (sjasmplus)" section="Assembler" version="10" kateversion="5.0" extensions="*.asm;*.a80;*.s" mimetype="" author="Peter Helcmanovsky (ped@7gods.org)" license="MIT">
<highlighting>
<list name="registers">
<!-- General purpose registers -->
Expand Down Expand Up @@ -368,10 +371,10 @@ TODO missing things:
<keyword attribute="Comment" context="#pop!Normal" String="directives" lookAhead="true"/>
<!-- dotRepeat context resolved here too after label arg (duplicity of context definition :/ ) -->
<RegExpr attribute="Directives" context="#pop!Normal" String="\.(\d+|\(.*?\))\s"/>
<!-- operators in expression -->
<!-- operators in expression (do word operators before "Arguments", symbols after -->
<keyword attribute="Normal Text" context="#stay" String="operators"/>
<AnyChar String="!~+-*/%&lt;>?=&amp;^|[]()" attribute="Normal Text" context="#stay"/>
<IncludeRules context="Arguments" />
<AnyChar String="!~+-*/%&lt;>?=&amp;^|[]()" attribute="Normal Text" context="#stay"/>
</context>

<context name="dotRepeat" attribute="Directives" lineEndContext="LabelLine" fallthrough="true" fallthroughContext="Normal">
Expand Down

0 comments on commit 78bb396

Please sign in to comment.