Skip to content

(basm] Syntax error in conditional code does not seem to highlight the apporpriate lines #60

@rgiot

Description

@rgiot

In my current project I have a parse error around a list defintion.
This raises the following error


error: error: error: Syntax error
   ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/animate_background.asm:71:28
   │
71 │         GRAY_CODE_ACTION_ORDER = [ 
   │                                  ^ Unknown error


error: Syntax error
   ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/animate_background.asm:71:28
   │
71 │         GRAY_CODE_ACTION_ORDER = [ 
   │                                  ^ invalid Value error


error: Syntax error
   ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/animate_background.asm:56:1
   │
56 │         assert VUMETER_KIND == VUMETER_VERTICAL
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid Condition: syntax error in conditionnal code


error: Syntax error
   ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/animate_background.asm:56:1
   │
56 │         assert VUMETER_KIND == VUMETER_VERTICAL
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid Error in condition


     ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/polar.asm:1041:2
     │
1041 │     include "animate_background.asm"
     │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


   ┌─ src/sna.asm:69:2
   │
69 │     include "polar.asm"
   │     ^^^^^^^^^^^^^^^^^^^

The part

   ┌─ /home/romain/Perso/CPC/current_projects/demo.bnd5/polar_dots/src/animate_background.asm:56:1
   │
56 │         assert VUMETER_KIND == VUMETER_VERTICAL
   │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid Error in condition

is erroneous. Either it should display the whole else bloc, either it should display the if test. But there is no reason to highlight the very first line of the bloc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions