Skip to content

Releases: peggyjs/code-peggy-language

Update to Peggy v3.0.1

05 Mar 21:20
v2.4.0
e36e329
Compare
Choose a tag to compare
  • Update to Peggy v3.0.1
  • Handle character escapes
  • Rule names can include _ or $
  • De-bounce parsing, to deal with multiple changes in a row
  • Make proxy rules work by not applying pass-through transform
  • Syntax errors now get underlined
  • Update GitHub Actions to latest versions

Update to peggy 2.0.1

05 Jun 17:33
v2.3.0
8f42b56
Compare
Choose a tag to compare
  • #23: Upgraded to peggy 2.0.1, from @hildjj
    • Can show multiple errors instead of just the first
    • Can show warnings
    • Prefs for controlling debug console output (default: false) and info-level messages (default: true)
  • #22: Add inline syntax highlighting in JavaScript template string, from @sanket143

Update to peggy 1.2

17 Aug 20:57
v2.2.0
8e5d0e1
Compare
Choose a tag to compare

Support GrammarError.diagnostics, allowing tracing errors to their root causes.

Bug fix

30 Apr 12:33
v2.1.3
5e68762
Compare
Choose a tag to compare

Fixes #11: Code functions do not work when identifier contains number

Add symbols for intializers

27 Apr 13:39
v2.1.1
8192bb6
Compare
Choose a tag to compare

Add symbols {Per-parse initializer} and {{Global initializer}} if the respective initializer exists.

Semantic features

26 Apr 22:54
v2.1.0
9040250
Compare
Choose a tag to compare

Added the following features, inspired by vscode-pegjs:

  • Go to / Peek Definition: Right-click a rule name, and go to its definition.
  • Go to / Peek References: Right click a rule name, and see all of the places it is used.
  • Rename Symbol: Rename a rule and all of the places that it is used.
  • Outline / Symbol Support: See the current rule in the breadcrumbs at the top of the editor, and a list
    of all of the rules in the Outline view.

Since we were already using an embedded language server, all of the vscode-pegjs code needed to be rewritten anyway, rather than included as-is. The approach taken was to use the AST created by the Peggy parse of your grammar before code generation to extract semantics from your code every time it changes.