From 2bb2502d20e4c7236d95875e6b310e178eb29bb2 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 15 Jan 2022 17:31:33 +0100 Subject: [PATCH] added @requirezp to syntax files --- docs/source/todo.rst | 2 +- syntax-files/IDEA/Prog8.xml | 2 +- syntax-files/NotepadPlusPlus/Prog8.xml | 2 +- syntax-files/Vim/prog8.vim | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 0587886fb..09210fc06 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -6,7 +6,7 @@ For next compiler release (7.7) - fix array and string initialization in zeropage - check all examples if they still run correctly (c64 + cx16) - document check: arrays and strings can also be placed in zeropage (but almost never should, due to size!) -- document @requirezp and add to syntax def files and IDEA +- document @requirezp Need help with diff --git a/syntax-files/IDEA/Prog8.xml b/syntax-files/IDEA/Prog8.xml index 88b263886..2162505ea 100644 --- a/syntax-files/IDEA/Prog8.xml +++ b/syntax-files/IDEA/Prog8.xml @@ -13,7 +13,7 @@ - + diff --git a/syntax-files/NotepadPlusPlus/Prog8.xml b/syntax-files/NotepadPlusPlus/Prog8.xml index dabe7d03f..7f3d95792 100644 --- a/syntax-files/NotepadPlusPlus/Prog8.xml +++ b/syntax-files/NotepadPlusPlus/Prog8.xml @@ -24,7 +24,7 @@ - void const str byte ubyte word uword float zp shared + void const str byte ubyte word uword float zp shared requirezp %address %asm %asmbinary %asminclude %breakpoint %import %launcher %option %output %zeropage %zpreserved inline sub asmsub romsub clobbers asm if when else if_cc if_cs if_eq if_mi if_neg if_nz if_pl if_pos if_vc if_vs if_z for in step do while repeat break return goto abs acos all any asin atan avg callfar callrom ceil cmp cos cos16 cos16u cos8 cos8u cosr8 cosr8u cosr16 cosr16u deg floor len ln log2 lsb lsl lsr max memory min mkword msb peek peekw poke pokew push pushw pop popw rsave rsavex rrestore rrestorex rad reverse rnd rndf rndw rol rol2 ror ror2 round sgn sin sin16 sin16u sin8 sin8u sinr8 sinr8u sinr16 sinr16u sizeof sort sqrt sqrt16 sum swap tan diff --git a/syntax-files/Vim/prog8.vim b/syntax-files/Vim/prog8.vim index 0def9f109..544706f0f 100644 --- a/syntax-files/Vim/prog8.vim +++ b/syntax-files/Vim/prog8.vim @@ -44,7 +44,7 @@ syn region prog8ArrayType matchgroup=prog8Type \ start="\<\%(u\?byte\|u\?word\|float\|str\)\[" end="\]" \ transparent syn keyword prog8StorageClass const -syn match prog8StorageClass "\(^\|\s\)\(@zp\|@shared\)\>" +syn match prog8StorageClass "\(^\|\s\)\(@zp\|@shared\|@requirezp\)\>" syn region prog8Block start="{" end="}" transparent syn region prog8Expression start="(" end=")" transparent