livebook/test
Stephen Ball 8c4ef89685
Update the vim modeline comment to not error (#774)
The currently suggested vim modeline formatting string to allow .livemd
files to render as markdown on GitHub works, but confuses vim itself.

```
<!-- vim: syntax=markdown -->
```

When opening a .livemd file with the suggested modeline in vim it errors
when it tries to parse `-->` as a modeline option.

e.g.

```
"2021/day2.livemd" 81L, 1616B
Error detected while processing modelines:
line    1:
E518: Unknown option: -->
```

The fix is to replace the suggested vim modeline

```
<!-- vim: syntax=markdown -->
```

With a modeline declaration format that indicates when the modeline
options are complete, allowing vim to ignore the rest of the line.

```
<!-- vim: set syntax=markdown: -->
```

Reference
- vim issue: https://github.com/vim/vim/issues/1648
- especially this comment: https://github.com/vim/vim/issues/1648#issuecomment-296386153

Fixes #773
2021-12-08 16:15:07 +01:00
..
livebook Update the vim modeline comment to not error (#774) 2021-12-08 16:15:07 +01:00
livebook_web Improve completion (#747) 2021-12-05 14:58:30 +01:00
support Improve runtimes UI (#655) 2021-10-28 19:41:07 +02:00
livebook_test.exs
test_helper.exs Fix intermittent test failures (#596) 2021-10-13 22:25:33 +02:00