Closed Vigilans closed 4 years ago
IJobChangeListener listener = new JobChangeAdapter() { @Override public void scheduled(IJobChangeEvent event) { if (event.getJob() instanceof UpdateClasspathJob) { jobInvocations[0] = jobInvocations[0] + 1; } } };
Scope of {:
{
punctuation.section.inner-class.begin.bracket.curly.java
meta.inner-class.java
Scope of event:
event
variable.parameter.java
meta.method.identifier.java
meta.method.java
punctuation.section.block.begin.bracket.curly.java
meta.method.body.java
meta.function-call.java
Scope is the same as single line comment.
Expected behavior: The existence of comment does not affect the syntax of inner-class.
Actual behavior: Comments before inner class's class body break out the current scope
Reproduces how often: Always
Prerequisites
Description
Original
Scope of
{
:punctuation.section.inner-class.begin.bracket.curly.java
meta.inner-class.java
Scope of
event
:variable.parameter.java
meta.method.identifier.java
meta.method.java
Add a single line comment before class body
Scope of
{
:punctuation.section.block.begin.bracket.curly.java
meta.method.body.java
Scope of
event
:meta.function-call.java
meta.method.body.java
meta.method.java
Add a multi line comment before class body
Scope is the same as single line comment.
Steps to Reproduce
Expected behavior: The existence of comment does not affect the syntax of inner-class.
Actual behavior: Comments before inner class's class body break out the current scope
Reproduces how often: Always
Versions
Additional Information