Blame | Last modification | View Log | Download
# file opened: raw_keyword_parsing.asm1 0000 ; issue in v1.15.1 reported on pk-ru forum:2 0000 ; sometimes the internal function "cmphstr" is used to detect keywords over raw line data3 0000 ; which didn't undergo yet proper substitution and contain block/EOL comment, then it was4 0000 ; possible to miss the keyword if the comment char was right after it without whitespace5 00006 0000 DEFINE/*c*/xyz7 0000 IFDEF xyz8 0000 01 DB 19 0001 ELSE10 0001 ~ ASSERT/*c*/011 0001 ENDIF12 0001 UNDEFINE xyz13 000114 0001 ; comment block focused15 0001 IF 116 0001 ; nested IF/IFN/IFNUSED17 0001 02 DB 218 0002 IFN 019 0002 03 DB 320 0003 ELSE/*c*/21 0003 ~ ASSERT/*c*/022 0003 ENDIF/*c*/23 0003 ; "//" EOL comment focused24 0003 IF 125 0003 04 DB 426 0004 ELSE//c27 0004 ~ ASSERT/*c*/028 0004 ENDIF//c29 0004 ; ";" EOL comment focused30 0004 IFNUSED someLabel31 0004 05 DB 532 0005 ELSE;c33 0005 ~ ASSERT/*c*/034 0005 ENDIF;c35 0005 ELSE; comment - causing issue in v1.15.136 0005 ~ ; nested + skipped IF/IFN/IFNUSED37 0005 ~ ASSERT/*c*/038 0005 ~ IFN/*c*/039 0005 ~ DB/*c*/-140 0005 ~ ELSE/*c*/41 0005 ~ ASSERT/*c*/042 0005 ~ ENDIF/*c*/43 0005 ~ ; "//" EOL comment focused44 0005 ~ IF/*c*/145 0005 ~ DB/*c*/-246 0005 ~ ELSE//c47 0005 ~ ASSERT/*c*/048 0005 ~ ENDIF//c49 0005 ~ ; ";" EOL comment focused50 0005 ~ IFNUSED/*c*/someLabel51 0005 ~ DB/*c*/-352 0005 ~ ELSE;c53 0005 ~ ASSERT/*c*/054 0005 ~ ENDIF;c55 0005 ENDIF; comment - causing issue in v1.15.156 000557 0005 DUP 158 0005 06 > DB 659 0006 EDUP//c60 000661 0006 STRUCT TestStruct62 0006 ~ s_a BYTE/*c*/-763 0006 ENDS//c64 000665 0006 07 TestStruct {7}66 000767 0007 ;; LEVEL 2 - add empty defines into sensitive lines to verify they get skipped68 000769 0007 DEFINE _EMPTINESS_70 000771 0007 ; DEFINE, IFDEF and UNDEFINE can't provide substitution, so they can't attend LEVEL 272 000773 0007 ; comment block focused74 0007 IF 175 0007 ; nested IF/IFN/IFNUSED76 0007 0A DB 1077 0008 IFN 078 0008 0B DB 1179 0009 ELSE/**/_EMPTINESS_/**/80 0009 ~ ASSERT/**/_EMPTINESS_/**/081 0009 ENDIF/**/_EMPTINESS_/**/82 0009 ; "//" EOL comment focused83 0009 IF 184 0009 0C DB 1285 000A ELSE/**/_EMPTINESS_//c86 000A ~ ASSERT/**/_EMPTINESS_/**/087 000A ENDIF/**/_EMPTINESS_//c88 000A ; ";" EOL comment focused89 000A IFNUSED someLabel90 000A 0D DB 1391 000B ELSE/**/_EMPTINESS_;c92 000B ~ ASSERT/**/_EMPTINESS_/**/093 000B ENDIF/**/_EMPTINESS_;c94 000B ELSE; comment - causing issue in v1.15.195 000B ~ ; nested + skipped IF/IFN/IFNUSED96 000B ~ ASSERT/**/_EMPTINESS_/**/097 000B ~ IFN/**/_EMPTINESS_/**/098 000B ~ DB/**/_EMPTINESS_/**/-1199 000B ~ ELSE/**/_EMPTINESS_/**/100 000B ~ ASSERT/**/_EMPTINESS_/**/0101 000B ~ ENDIF/**/_EMPTINESS_/**/102 000B ~ ; "//" EOL comment focused103 000B ~ IF/**/_EMPTINESS_/**/1104 000B ~ DB/**/_EMPTINESS_/**/-12105 000B ~ ELSE/**/_EMPTINESS_//c106 000B ~ ASSERT/**/_EMPTINESS_/**/0107 000B ~ ENDIF/**/_EMPTINESS_//c108 000B ~ ; ";" EOL comment focused109 000B ~ IFNUSED/**/_EMPTINESS_/**/someLabel110 000B ~ DB/**/_EMPTINESS_/**/-13111 000B ~ ELSE/**/_EMPTINESS_;c112 000B ~ ASSERT/**/_EMPTINESS_/**/0113 000B ~ ENDIF/**/_EMPTINESS_;c114 000B ENDIF; comment - causing issue in v1.15.1115 000B116 000B DUP 1117 000B 0E > DB 14118 000C EDUP/**/_EMPTINESS_//c119 000C120 000C STRUCT TestStruct_L2121 000C ~ s_a BYTE/**/_EMPTINESS_/**/-14122 000C ENDS/**/_EMPTINESS_//c123 000C124 000C 0F TestStruct_L2 {15}125 000D# file closed: raw_keyword_parsing.asmValue Label------ - -----------------------------------------------------------0x0001 X TestStruct0x0000 X TestStruct.s_a0x0001 X TestStruct_L20x0000 X TestStruct_L2.s_a