aklt / plantuml-syntax

vim syntax file for plantuml
Vim License
469 stars 72 forks source link

`while` inside keyword still creates indentation in activity diagram #110

Open MartyLake opened 4 months ago

MartyLake commented 4 months ago

For some reason, when creating an activity diagram, multi line comments are supported, but if they contain the while keyword at the beginning of the line, then an indentation happens.

Actual

@startuml
note right
  Extractor knowledge of
  the native format
  is not assumed
  while Enriching
end note

  |#AntiqueWhite|Swimlane2|
@enduml

Expected

@startuml
note right
  Extractor knowledge of
  the native format
  is not assumed
  while Enriching
end note

|#AntiqueWhite|Swimlane2|
@enduml

Workaround

use a different word instead of while. or reformat paragraph so that while si not the first word of the line, for example:

@startuml
note right
  Extractor knowledge of
  the native format
  is not assumed while
  Enriching
end note

|#AntiqueWhite|Swimlane2|
@enduml
aklt commented 4 months ago

Thanks for reporting this!