prettier/tests/flow/node_tests
Christopher Chedeau 8bc3c617a0 Preserve next line with trailing comment (#535)
It turns that our hasNextLine logic needs to be tuned to skip all the trailing comments. The code is not pretty but it does the job. It looks like it fixes a bunch of things in the test cases :)

I made sure that nested inline comments are NOT valid JavaScript

```js
/* /* a */ */
Uncaught SyntaxError: Unexpected token *
```

so it is okay to do a dumb search for */ when you are in a comment
2017-01-31 11:27:44 -05:00
..
assert Refactor comment algorithm and improve newline/spaces detection (fixes #483, #275, #135, #78, #36) (#482) 2017-01-26 11:57:43 -08:00
basic Move tests around (#454) 2017-01-24 14:35:37 -08:00
basic_file Move tests around (#454) 2017-01-24 14:35:37 -08:00
basic_node_modules Move tests around (#454) 2017-01-24 14:35:37 -08:00
basic_node_modules_with_path Move tests around (#454) 2017-01-24 14:35:37 -08:00
basic_package Move tests around (#454) 2017-01-24 14:35:37 -08:00
buffer Move tests around (#454) 2017-01-24 14:35:37 -08:00
child_process Refactor comment algorithm and improve newline/spaces detection (fixes #483, #275, #135, #78, #36) (#482) 2017-01-26 11:57:43 -08:00
crypto Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
fs Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
json_file Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
os Preserve next line with trailing comment (#535) 2017-01-31 11:27:44 -05:00
package_file Move tests around (#454) 2017-01-24 14:35:37 -08:00
package_file_node_modules/foo Move tests around (#454) 2017-01-24 14:35:37 -08:00
path_node_modules Move tests around (#454) 2017-01-24 14:35:37 -08:00
path_node_modules_with_short_main Move tests around (#454) 2017-01-24 14:35:37 -08:00
path_node_modules_without_main Move tests around (#454) 2017-01-24 14:35:37 -08:00
path_package Move tests around (#454) 2017-01-24 14:35:37 -08:00
stream Move tests around (#454) 2017-01-24 14:35:37 -08:00
timers Move tests around (#454) 2017-01-24 14:35:37 -08:00
url Move tests around (#454) 2017-01-24 14:35:37 -08:00