From 19e3b519dbfb6ae33610160d3cdb41cbe0e7e922 Mon Sep 17 00:00:00 2001 From: chrisly42 Date: Mon, 2 Aug 2021 09:31:10 +0200 Subject: [PATCH] Bugfix: Macro definitions with colons and without space supported (as found in P61a source). --- README.md | 2 + build.gradle | 1 + .../plugins/m68k/lexer/_M68kLexer.java | 229 +++++++++--------- .../plugins/m68k/parser/M68kParser.java | 14 +- .../intellij/plugins/m68k/lexer/LexerUtil.kt | 2 +- .../plugins/m68k/lexer/_M68kLexer.flex | 4 +- .../platon42/intellij/plugins/m68k/m68k.bnf | 2 +- .../m68k/parser/MacroDefinitionTest.kt | 11 + ...acro_name_with_colon_p61_source_suxxor.txt | 15 ++ 9 files changed, 158 insertions(+), 122 deletions(-) create mode 100644 src/test/resources/parser/macros/macro_name_with_colon_p61_source_suxxor.txt diff --git a/README.md b/README.md index 5abc4b9..15457d2 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ it's "good enough" to get started, and I can return to demo coding with its curr - While the Lexer supports the -spaces option (where a space introduces a comment), this cannot be configured yet (default is off). - No support for other processor instructions, FPU or 68020+ address modes. - Unit Test coverage is not as good as it could be (ahem). +- `opt` keyword needs special treatment and will currently show a parsing error - Missing but planned features: - Macro evaluation on invocation - Folding @@ -79,6 +80,7 @@ make it work with JUnit 5. Feel free to use the code (in package ```de.platon42. - Bugfix: Interpretation of register lists was wrong in BNF. - New: Added Documentation Provider for symbol definitions (shows assigned declaration). - New: Added Documentation Provider for mnemonics (simple version, generated out of ISA information). +- Bugfix: Macro definitions with colons and without space supported (as found in P61a source). ### V0.3 (28-Jul-21) diff --git a/build.gradle b/build.gradle index 417b648..fe4e251 100644 --- a/build.gradle +++ b/build.gradle @@ -67,6 +67,7 @@ patchPluginXml {
  • Bugfix: Interpretation of register lists was wrong in BNF.
  • New: Added Documentation Provider for symbol definitions (shows assigned declaration).
  • New: Added Documentation Provider for mnemonics (simple version, generated out of ISA information). +
  • Bugfix: Macro definitions with colons and without space supported (as found in P61a source).

    V0.3 (28-Jul-21)