stateDiagram-v2
    accTitle: This is the accessible title
    accDescr: This is an accessible description

    %% this is a comment
    % a comment ???
    direction LR

    [*] --> First
    Second --> [*]
    First-->Second

    state "This is a state description" as s2

    % a comment
    %% a comment
    s1:%% a comment
    s2: %% not a comment !!!
    s3:% not a comment
    s4 %% a comment
    s5 % a comment
    s6%%not_comment
    s7 --> s6 %% another comment
    s8 %% another comment

    %% oups
    state S and %% not a comment...
    {
        X
    }

    s1 --> s2: A transition

    state NamedComposite {
        [*] --> namedSimple
        namedSimple --> [*]
        namedSimple: Another simple
        --
        [*] --> NumLockOff
        NumLockOff --> NumLockOn : EvNumLockPressed
        NumLockOn --> NumLockOff : EvNumLockPressed

        state Second {
            [*] --> second
            second --> Third
        }
    }

    state if_state <<choice>>
    if_state --> False: if n < 0
    if_state --> True : if n >= 0

    note right of First
        Important information! You can write
        %%  \________/ end...
        notesend note
    note left of State2 : This is the note to the left.

    classDef movement fill:#f00,color:white,font-weight:bold,stroke-width:2px,stroke:yellow

    class Moving,Crash movement

    Moving --> Crash:::movement
    Crash:::badBadEvent --> [*]