Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"$antlr-format off" removes remaining lines in file #36

Closed
StephenWeatherford opened this issue May 31, 2018 · 1 comment
Closed

"$antlr-format off" removes remaining lines in file #36

StephenWeatherford opened this issue May 31, 2018 · 1 comment
Labels
bug

Comments

@StephenWeatherford
Copy link

@StephenWeatherford StephenWeatherford commented May 31, 2018

  1. Put the following in a .g4 file
  2. Open in vscode
  3. format doc (SHIFT+ALT+F, or save if auto format is on)
    !) Everything from the antlr-format line and on is deleted
grammar mongo;

// $antlr-format off

@lexer::members {
	private isExternalIdentifierText(text) {
		return text === 'db';
	}
}

mongoCommands: EOF;
@mike-lischke mike-lischke added the bug label May 31, 2018
mike-lischke added a commit that referenced this issue Jul 13, 2018
Also the backend tests from the former antlr4-graps module should now run automatically.
@StephenWeatherford

This comment has been minimized.

Copy link
Author

@StephenWeatherford StephenWeatherford commented Jul 14, 2018

Cool, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.