Bugfix: Macro definitions with colons and without space supported (as found in P61a source).
This commit is contained in:
@@ -63,4 +63,15 @@ label: move.w d0,d1
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
internal fun macro_name_with_colon_p61_source_suxxor(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
|
||||
testGoodSyntax(
|
||||
testCase, """
|
||||
structure:macro
|
||||
\1:equ 0
|
||||
soffset:set \2
|
||||
endm"""
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
Assembly File: a.asm
|
||||
PsiWhiteSpace('\n')
|
||||
M68kMacroDefinitionImpl(MACRO_DEFINITION)
|
||||
M68kMacroNameDefinitionImpl(MACRO_NAME_DEFINITION)
|
||||
PsiElement(M68kTokenType.MACRO_NAME)('structure')
|
||||
PsiElement(M68kTokenType.COLON)(':')
|
||||
PsiElement(M68kTokenType.MACRO_TAG)('macro')
|
||||
PsiWhiteSpace('\n')
|
||||
M68kMacroPlainLineImpl(MACRO_PLAIN_LINE)
|
||||
PsiElement(M68kTokenType.MACRO_LINE)('\1:equ 0')
|
||||
PsiWhiteSpace('\n')
|
||||
M68kMacroPlainLineImpl(MACRO_PLAIN_LINE)
|
||||
PsiElement(M68kTokenType.MACRO_LINE)('soffset:set \2')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(M68kTokenType.MACRO_END_TAG)('\tendm')
|
||||
Reference in New Issue
Block a user