Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

begin-end block not highlighted correctly at end of file #260

Open
smithtim opened this issue Feb 5, 2019 · 1 comment
Open

begin-end block not highlighted correctly at end of file #260

smithtim opened this issue Feb 5, 2019 · 1 comment

Comments

@smithtim
Copy link

smithtim commented Feb 5, 2019

Description

In a file that does not end with a newline, a begin-end block at the end of the file will be highlighted incorrectly.

Edit by @rsese to snippet for easy copy/paste

puts "hello"
=begin
this is a comment
and so is this
=end

when the file ends with a newline (correct highlighting):

image

when the file does not end with a newline (incorrect highlighting):

image

Reproduces how often: always

Versions

Atom : 1.32.2
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3

macOS High Sierra 10.13.5

@smithtim smithtim changed the title begin-end block not highlighted at end of file begin-end block not highlighted correctly at end of file Feb 5, 2019
@rsese
Copy link

rsese commented Feb 5, 2019

Thanks for the report! Reproduced with 1.36.0-nightly10 on macOS 10.12.6.

As a side note, please use the issue template format and leave all the sections and fill them out as much as possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants