From e0cdfef42b3da2efc111ea0fb6aff6b89f4fa7fc Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Fri, 6 Aug 2021 20:03:47 +0200 Subject: [PATCH] New: Files in 'include' directives can be referenced and renamed/refactored. --- README.md | 1 + build.gradle | 3 +- .../plugins/m68k/parser/M68kParser.java | 3 +- .../impl/M68kPreprocessorDirectiveImpl.java | 3 +- .../platon42/intellij/plugins/m68k/m68k.bnf | 5 +- .../plugins/m68k/psi/M68kElementFactory.kt | 5 ++ .../psi/M68kPreprocessorDirectiveMixin.kt | 13 ++++++ .../m68k/refs/M68kIncludeFileReference.kt | 46 +++++++++++++++++++ ...PreprocessorDirectiveElementManipulator.kt | 34 ++++++++++++++ .../m68k/refs/M68kReferenceContributor.kt | 16 +++++++ .../m68k/scanner/M68kFindUsagesProvider.kt | 11 ++++- .../m68k/scanner/M68kIncludeFileProvider.kt | 2 +- src/main/resources/META-INF/plugin.xml | 2 + .../m68k/refs/M68kReferenceContributorTest.kt | 42 +++++++++++++++++ 14 files changed, 176 insertions(+), 10 deletions(-) create mode 100644 src/main/java/de/platon42/intellij/plugins/m68k/psi/M68kPreprocessorDirectiveMixin.kt create mode 100644 src/main/java/de/platon42/intellij/plugins/m68k/refs/M68kIncludeFileReference.kt create mode 100644 src/main/java/de/platon42/intellij/plugins/m68k/refs/M68kPreprocessorDirectiveElementManipulator.kt diff --git a/README.md b/README.md index d46f69a..0269e83 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ make it work with JUnit 5. Feel free to use the code (in package ```de.platon42. - Enhancement: `opt` and several other directives (`printt`, `fail` etc.) no longer causes a syntax error when unquoted. - Enhancement: `include`, `incdir` and `incbin` and `output` with `` quotes no longer cause syntax error. +- New: Files in `include` directives can be referenced and renamed/refactored. ### V0.5 (06-Aug-21) diff --git a/build.gradle b/build.gradle index 518aba7..a459569 100644 --- a/build.gradle +++ b/build.gradle @@ -60,7 +60,8 @@ patchPluginXml {

V0.6 (unreleased)

V0.5 (06-Aug-21)