Nosfe likes unquoted file paths with backslashes in include statements :-(

This commit is contained in:
2021-07-16 12:20:36 +02:00
parent 84104c86cd
commit 213150e51f
4 changed files with 120 additions and 99 deletions
@@ -13,6 +13,11 @@ internal class OtherDirectivesTest : AbstractParsingTest() {
testGoodSyntax(testCase, " include \"exec/execbase.i\"\n")
}
@Test
internal fun include_file_unquoted(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
testGoodSyntax(testCase, "howto:incbin Convertedassets\\scroller_howto.raw.BPL\n")
}
@Test
internal fun if_defined_block(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) {
testGoodSyntax(testCase, "\tIFD DEBUG ; cause a crash\n illegal\n ENDC\n")
@@ -0,0 +1,10 @@
Assembly File: a.asm
M68kStatementImpl(STATEMENT)
M68kPreprocessorDirectiveImpl(PREPROCESSOR_DIRECTIVE)
M68kGlobalLabelImpl(GLOBAL_LABEL)
PsiElement(M68kTokenType.GLOBAL_LABEL_DEF)('howto:')
PsiElement(M68kTokenType.OTHER_DIRECTIVE)('incbin')
PsiWhiteSpace(' ')
M68kRefExprImpl(REF_EXPR)
PsiElement(M68kTokenType.SYMBOL)('Convertedassets\scroller_howto.raw.BPL')
PsiElement(M68kTokenType.EOL)('\n')