Wrong syntax highlighting for spec file: pending 'it' block
Reported by Nelvin Driz | June 12th, 2010 @ 04:54 PM
When I have pending it blocks with the following format, the
syntax highlighting is wrong.
Example:
describe 'Something' do
it 'should do task 1'
it 'should do task 2'
end
Comments and changes to this ticket
-
Nelvin Driz June 12th, 2010 @ 04:58 PM
It also has wrong syntax highlighting with:
describe 'Something' do it { ... } it { ... } end
-
Nelvin Driz June 12th, 2010 @ 05:25 PM
Although I don't know how it happens but sometimes I am unable to create multi-line comments through '=begin' since it would always append tab/two spaces before '=begin' like:
describe 'Something' do =begin =end end
I think it might be connected to this since I'm guessing the highlighting of the text is bound to how it is interpreted. And through that, it determines if a certain line must be indented or not.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A programmer's text editor for Gnome.