fsprojects-archive / zzarchive-VisualFSharpPowerTools

[ARCHIVED] Power commands for F# in Visual Studio
http://fsprojects.github.io/VisualFSharpPowerTools/
Apache License 2.0
310 stars 77 forks source link

Incorrect reformatting of comments #1478

Closed miegir closed 7 years ago

miegir commented 7 years ago

Formatting this (comment inside ()):

let x =
    ((*comment*))
    printf "a"
    // another comment 1
    printf "b"
    // another comment 2
    printf "c"

results in the following (comment text doubled and another comments in the file are placed between two comment copies):

let x = 
    ((*comment*) // another comment 1
                 // another comment 2
                 (*comment*))
    printf "a"
    printf "b"
    printf "c"

Repeated reformatting will double all text in the comment.

vasily-kirichenko commented 7 years ago

Please, report the issue to Fantomas repository https://github.com/dungpa/fantomas/issues. VFPT uses it to make cod format.

miegir commented 7 years ago

done: https://github.com/dungpa/fantomas/issues/204