Releases: antlr/intellij-plugin-v4
1.6 Incorporates ANTLR 4.5
This release does nothing except incorporate the new ANTLR 4.5 into the plug-in.
1.5.1 Support separate lexer/parser grammars in preview.
Fixes/enhancements
- Plugin can only show preview for combined lexer/parser grammars
- Disable preview for lexer grammars in front editor
- NPE at mouseEnteredGrammarEditorEvent
- Is the max k in the input field popup off? Seems different than what's in the profiler column.
- NPE in ANTLRv4PluginController.mouseEnteredGrammarEditorEvent when clicking
1.5 -- Add profiler, fix bugs
This release is all about the profiler. The profiler helps you understand which decisions in your grammar are complicated or expensive. Profiling data is always available just like the parse tree during grammar interpretation. The profiler cannot track code execution because it is running the grammar interpreter not executing compiled code. It provides both a simplified set of columns and an expert set the provides a great deal more information. Clicking on a row in the profiler highlights the decision in the grammar and also highlights relevant pieces of the input, such as ambiguities or the deepest lookahead.
This update includes the latest 4.4 ANTLR that knows how to generate Java, Python2, and Python3 code. (Actually, I needed to sneak a small bug fix and so it's technically 4.4.1-dev right after antlr/antlr4#664).
Enhancements
- Add parser profiling
- Disable automatic parser sources generation
- Allow users to turn off ANTLR auto-parser-generation for use with external build tools like ant
- copy new ANTLR parser grammars into plug-in (for ANTLR v4.4)
- Saving grammar clears the input area
Bug fixes
- Plugin version 1.4 gets confused by a /* in the @members section
- In ANTLR Preview window, files with CR/CRLF line endings can't be read
- Exception on grammar file
- The configuration for grammars was kind of messed up. I cleaned it all up.
Summary of changes
You can view all issues closed for this release here, and all commits for this release here.
Add file input for preview, jump to grammar rule from preview window, and parse region under cursor functionality.
This release provides new features:
- Highlight grammar rule region in preview input window via alt-mouse move popup
- From preview input window, jump to token in grammar that matched token under meta-mouse movement
- allow file chooser for "test antlr rule"
Note that this release required a change to ANTLR 4 itself and therefore includes a prerelease version of ANTLR 4.2.3.
1.3
Generate common lexical rules, generate lexical rules for literals found in parser rules
Enhancements
- Generate lexical rules for literals defined in the parser rules
- Create pop-up to insert common token rules
Bug fixes
1.2.1
1.2
New features: token information and error highlighting in preview editor window, bug fixes.
Improved preview editor
You can use the meta-key while moving the mouse and it will show you token information in the preview editor box via tooltips.
Errors within the preview editor are now highlighted with tooltips and underlining just like a regular editor window. The difference is that this window's grammar is specified in your grammar file.
There is a summary below, or you can see the complete change list for 1.2.
Enhancements
- In preview input window, meta-mouse movement should pop up tooltips on token info
- Show errors in preview input window as tooltips
Bug Fixes
- .g files associated with the plug-in caused an exception
- create new file T.g4 makes empty grammar leading to null ptr exception.
- Exception when generating recognizer
- read lock check failure
- Configure ANTLR dialog has no effect
- IDE Fatal Error if target is missing
- @header not parsed for package correctly
1.1
Improved ANTLR config/build, bug fixes
This release is all about configuring ANTLR to generate parsers in the directory you want. It now builds the parsers when you save automatically. There is a summary below, or you can see the complete change list.
This version uses the latest ANTLR 4.2.2.
Enhancements
- Created ANTLR Tool output window that pops up when parser generation has errors / warnings.. If there are errors when ANTLR runs on your grammar, a console window pops up.
- Build on save. ANTLR runs in the background when you save your grammar file. There is no need to include in a build system for simple projects.
- token errors and other reported issues not shown anywhere. Token errors are now shown in a little text area underneath the input window for the life course you.
- Allow per file antlr tool config with popup.. Each grammar file now has a separate ANTLR configuration.
- Changes in grammar should be written to disk upon "generate parser" command