30 KiB
@gram-lang/vscode-extension
1.6.1
Patch Changes
809cfdc: VS Code / Marketplace: Republished the extension, which should fix installing 1.6.0 from the Extensions view ("Failed to fetch"); the failure apparently came from a file the Marketplace's CDN served incorrectly. Installing from the command line, Open VSX or a.vsixwas not affected.- @gram-lang/language-server@1.6.1
- @gram-lang/renderer@1.6.1
1.6.0
Patch Changes
- Updated dependencies [
34d4f85] - Updated dependencies [
e893bae] - Updated dependencies [
34d4f85] - Updated dependencies [
34d4f85] - Updated dependencies [
782fbc2] - Updated dependencies [
6142d25] - Updated dependencies [
da8238d]- @gram-lang/renderer@1.6.0
- @gram-lang/language-server@1.6.0
1.5.2
Patch Changes
09d4c11: Language Server: Fixed ingredient database detection and false warnings in editors:- Now reads
database:from.gram/config.yaml(updating live on edit), detects.gram/ingredients.yamlin more editors, and translates the "Preview" button. - Unknown-ingredient warnings and nutrition hovers now match actual nutrition lookup (ignoring case, accents, hyphens, and apostrophes, without guessing plurals).
- Intermediates used in percentages/ratios/timers or declared on section headings (
## Dough ->&dough) are no longer flagged as unused.
- Now reads
daddb56: Parser & VS Code: A trailing colon after an ingredient (Add @salt:) is now kept in the step text instead of disappearing, and temperature names (ovenin^oven{180°C}) are now highlighted like timer names in VS Code.- Updated dependencies [
9a09465] - Updated dependencies [
09d4c11] - Updated dependencies [
3f20d76] - Updated dependencies [
14f9a9f]- @gram-lang/renderer@1.5.2
- @gram-lang/language-server@1.5.2
1.5.1
Patch Changes
- Updated dependencies [
9af07c9]- @gram-lang/renderer@1.5.1
- @gram-lang/language-server@1.5.1
1.5.0
Minor Changes
9c86b70: Scheduler, Renderer & CLI: Clock times can now be entered and displayed in 12-hour (1:00 PM) as well as 24-hour (13:00) format:--available,--meal-times,--serve,--find, theiravailabilityandmealTimessettings, and the editor's serving time accept 12-hour times in any case or spacing (8am-10pm,fri=6pm-12am,12:30pm,8pm,"2026-10-11 1:00 pm"), rejecting invalid forms like13pm,0am, or bare hours.- Adds a
clockview setting (auto,12h,24h) controlling time formatting in the run sheet, serving-time suggestions, and iCalendar descriptions;auto(default) follows the reader's locale region rather than the recipe language. - Configurable via
--clock(gram plan,gram export,gram print),clockin.gram/config.yaml(or global config),gram.clockin VS Code, and the playground's Display menu. - Adds
localesupport toprepareViews(), anhourCycleoption to run sheets, clock helpers (formatClock,chooseClock,resolveHourCycle,systemLocale) in@gram-lang/renderer, andparseTimeOfDay/parseLocalDateTimein@gram-lang/scheduler(JSON and ISO data remain unchanged).
a17ebc8: Language Server, VS Code & Format: Editors and the formatter now support sums of quantities (@flour{1 cup + 1 tbsp}):- Quick fixes convert adjacent quantities into a sum (
{1 cup 5 tbsp}→{1 cup + 5 tbsp}), apply suggested percentage resolutions ({100 g + 10%}→{110 g}), and clarifyozafter a volume asfl oz. - Hover previews show the combined total (
= 17 tbsp) or distinct unit kinds, along with estimated weight from the ingredient database. - Unit completion works inside each term of a sum once its number is typed (
{1 cup + 2). gram formatspaces+and-in ingredient sums (leaving ranges, timers, and temperatures untouched) and trims trailing zeros across quantities ({1.50 kg}→{1.5 kg},~{1.50 h}→~{1.5 h}), reporting operator spacing fixes inquantityOperatorSpacing.
- Quick fixes convert adjacent quantities into a sum (
f91ec4e: Parser & Kitchen: Steps can now mark inline target states with an optional glued verification note (Whisk until ={ribbon stage}(the batter falls back in a continuous ribbon).):- Only the state sits inside
={…}, with an optional single-line note attached to}; unclosed or empty={raises a syntax error, and braceless@ingredientnames end before a target state (@salt until ={taste}). - Compiled steps emit a
checkpointtoken (state, plus optionalnote) without affecting scaling, scheduling, or the shopping list. - Rendered across HTML, Markdown, plain text, and print views;
gram cookshows checkpoints below each step and reminds you when a step timer rings. gram difftracks added, removed, and changed target states,gram importpreserves them from sources, and editors highlight them.
- Only the state sits inside
55188fc: Language Server & VS Code: Editors now understand natural timer and anchor syntax:- Hovering a timer shows its normalized duration (
~{1:30 h}→1 h 30 min), and hovering a section anchor shows its lead time and whether it starts a separate working day. - Unit completion inside
~{…}suggests only time units (and no longer offers time units for ingredients). - Syntax highlighting distinguishes numbers and units in
~{1h30},~{1:30 h},~{5'30"}, and duration ranges.
- Hovering a timer shows its normalized duration (
d5fe9c3: Parser, Kitchen & Analyzer: Ingredients, intermediates, and timers can now be written as unit ratios:- Supports ratios across units or counts on ingredients (
@eggs{1 / 100 g @&flour},@salt{15 g / 1 L @&water}), homemade preparations (&stock{250 ml / 100 g @&rice}, plus percentages like&stock{250% @&rice}), and proportional timers (~{15 min / 500 g @&roast},~{4 min / @&cutlet}). - Resolves compatible units at compile time and cross-family ratios via the ingredient database; incompatible or zero-denominator ratios raise
RELATIVE_QUANTITY_UNKNOWN_MASS(withreason) orINVALID_QUANTITY(reason: "zeroRatioDenominator") instead of guessing. - Whole-use references to a section preparation (
Roll out the &dough) now estimate mass from the producing section, while step-produced intermediates (Mix … ->&dough) require an explicit amount (reason: "stepProducer"); warnings and formulas in imported bases display original author names rather than internal aliases. - Scaling a recipe re-resolves all ratios and recomputes the schedule, total times, and shopping list.
- Views display resolved ratios in tooltips, and the language server provides syntax highlighting, target completion, intermediate renaming, hover previews, and inlay hints.
- Supports ratios across units or counts on ingredients (
Patch Changes
07ede89: Language Server & VS Code: Fixed the live-preview CodeLens above.gramfiles to display▶ Previewin English instead of▶ Aperçu.- Updated dependencies [
9c86b70] - Updated dependencies [
073d4f1] - Updated dependencies [
a17ebc8] - Updated dependencies [
80fbc22] - Updated dependencies [
07ede89] - Updated dependencies [
a9e6231] - Updated dependencies [
f91ec4e] - Updated dependencies [
238e012] - Updated dependencies [
4d4b12e] - Updated dependencies [
0fa8c95] - Updated dependencies [
55188fc] - Updated dependencies [
d5fe9c3]- @gram-lang/renderer@1.5.0
- @gram-lang/language-server@1.5.0
1.4.2
Patch Changes
- Updated dependencies [
3ecc785] - Updated dependencies [
229f017]- @gram-lang/renderer@1.4.2
- @gram-lang/language-server@1.4.2
1.4.1
Patch Changes
- Updated dependencies [
2327de6] - Updated dependencies [
7de7b3f] - Updated dependencies [
7fbd5c6] - Updated dependencies [
2327de6] - Updated dependencies [
7fbd5c6]- @gram-lang/renderer@1.4.1
- @gram-lang/language-server@1.4.1
1.4.0
Minor Changes
-
VS Code / Run sheet: The editor shows the run sheet of the recipe in place of the Gantt chart:
- A new
Gram: Run Sheetcommand opens it next to the recipe, in days before the service (D-2, D-1, day D); it follows thegram.miseEnPlace,gram.restsandgram.commentssettings - A Served at field at the top of the run sheet puts it on the calendar, with dates and clock times, in your project's time zone and hours (
timezoneandavailabilityin.gram/config.yaml); When to serve? proposes the times that work over the next seven days, the earliest first, and says why the others do not. The serving time is kept per recipe while VS Code is open, never saved - A Scale and stock section at the top of the recipe and of the run sheet adjusts this sitting, as
--scale,--stockand--bakers-referencedo in the CLI: a scale in percent or a target quantity of one ingredient, the baker's reference, and the imports already made. These choices are shared by every panel of the recipe and kept while VS Code is open, never saved
Deprecated
- VS Code: the
Gram: Gantt Chartcommand, removed in 2.0.0. It still works and opens the run sheet, with a notice once. UseGram: Run Sheet - Language server: the
gram/ganttUpdatednotification, removed in 2.0.0. It is still sent to clients that do not declare the views protocol, and the VS Code extension no longer reads it. Readgram/viewUpdatedwith therunSheetoutput, or the data of the compiled recipe
- A new
-
VS Code / Settings: The editor now offers every setting of a recipe, with the same values and default as the command line and the playground:
gram.miseEnPlace(perSection, the default,upfrontorperDay) chooses when the mise en place is planned, andgram.rests(shortest, the default,balancedorlongest) how long a rest written as a range (~_{12-24h}) lasts; the preview, the run sheet and the total time hint next to the recipe title all follow themgram.stepQuantitieswrites the quantities in the text of the steps, or leaves them out,gram.nutritionBasispins the basis of the nutrition (autois the default) andgram.bakersMathOnlyshows only the baker's percentagesgram.bakersMath,gram.massStandardization,gram.yieldCalculationandgram.nutritionEstimationchoose what is computed from the ingredient database; all are on by default- Changing a
gram.*setting now reaches the language server straight away, without reloading the window (this also applies togram.ingredientDatabase.path), updates every open recipe, and a recipe already open when the editor starts follows it too
-
Comments: You can now choose whether the comments of a recipe (
// like this) are shown or left out, in every view:- The renderer takes a new
comments: "show" | "hide"option (default"show") that the recipe views, the print and the run sheet follow; hiding leaves no empty notes section behind gram export,gram printandgram planaccept--comments <show|hide>, and the editor has a newgram.commentssetting for the preview and the run sheet; the playground gets a Display section with a switch- In the run sheet, a note alone on a line sits under its step in small muted text, and one at the end of a line stays in the sentence, between parentheses
- The renderer takes a new
-
Renderer / HTML recipe: The HTML recipe has a new design, and the printed recipe follows it:
- A better organized header (title, description, author, source, tags), a summary bar with the portions, the yield, the mass and the energy, and a bar for the times
- Tooltips that stay readable wherever they open in the window, with more practical information: quantity, weight and how it was estimated, preparation, what a part is taken from
- A more interactive recipe: hover an ingredient or a piece of cookware to see the steps that use it, tick the steps off, and follow what a step makes to the steps that use it
- The printed recipe (
gram print,gram export --format html) now looks like the one on screen, in black and white, with boxes to tick - Each view keeps its own styles (
@gram-lang/renderer/gram.cssis imported as before and relies on the CSS@scoperule, supported by every current browser), so one view can no longer change another
Deprecated
- Renderer: the
interactiveScalingoption oftoHTML(), and thedecreasePortions,increasePortionsandeditPortionsstrings of@gram-lang/i18n, removed in 2.0.0. The portions stepper they draw only works where the page around the recipe handles its buttons, so it did nothing in an exported file or an editor preview. Scale the recipe before rendering it instead (applyScale()of@gram-lang/kitchen): the recipe then shows its portions and its scale factor by itself. The option keeps working until 2.0.0
-
Renderer / Nutrition: The nutrition of the HTML recipe is now a compact table, like a European food label, and easy to reach from the top of the recipe:
- One column per basis, side by side (per 100 g, then per portion), with the energy as the first row in kJ and kcal and the whole recipe underneath; no more switching between bases
- A
%RIcolumn gives each nutrient's share of the reference intake of an average adult (8,400 kJ / 2,000 kcal), per portion - The hero bar shows the energy (
493 kcal per portion, or per 100 g when the recipe declares no portions); clicking it jumps to the table - Sodium is now shown as salt, in grams (sodium × 2.5), and calories as energy, in every view and every language
- With the
nutritionBasissetting set to one basis, the table and the hero bar show that basis alone - The Markdown and plain text recipes show the same table by default, instead of the values per portion only
Deprecated
- Renderer: the
interactiveNutritionoption no longer has any effect, since every basis is shown at once, and is removed in 2.0.0. Remove it from your calls
-
VS Code / Views: Unified view panels and new developer inspectors:
- A new
Gram: Show View...command lists all available views and opens the selected one: recipe preview, run sheet, and developer inspectors (composed AST and compiled JSON, as source text or an interactive tree).Gram: Live Preview,Gram: Run SheetandGram: Macrosremain available as direct shortcuts - Open panels follow the active
.grameditor tab, refresh when brought back into focus, and the language server computes only the panels that are visible - When a recipe contains errors, panels keep their last valid rendering, dimmed beneath a banner with a button that jumps to the error, instead of going blank
- The live preview always shows the nutrition summary, as the playground does: the Macros button is gone, and
Gram: Macrosscrolls to the table - The Scale and stock section has a Portions field, shown when the recipe states its portions, that scales the recipe when you change it
- A new
Patch Changes
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- @gram-lang/renderer@1.4.0
- @gram-lang/language-server@1.4.0
1.3.0
Patch Changes
- Updated dependencies [
4c9652c] - Updated dependencies [
95698cc]- @gram-lang/renderer@1.3.0
- @gram-lang/language-server@1.3.0
1.2.1
Patch Changes
532ea55: Renderer: Switched icons to embedded inline SVGs, removing external CDN dependencies (unpkg.com) and enabling full offline previews in VS Code.- Updated dependencies [
532ea55] - Updated dependencies [
728e2ba]- @gram-lang/renderer@1.2.1
- @gram-lang/language-server@1.2.1
1.2.0
Patch Changes
- Updated dependencies [
2bab3cd] - Updated dependencies [
8a4056b]- @gram-lang/renderer@1.2.0
- @gram-lang/language-server@1.2.0
1.1.0
Patch Changes
- Updated dependencies [
fbb7511] - Updated dependencies [
fbb7511]- @gram-lang/language-server@1.1.0
- @gram-lang/renderer@1.1.0
1.0.1
Patch Changes
- @gram-lang/renderer@1.0.1
- @gram-lang/language-server@1.0.1
1.0.0
Major Changes
-
Gram v1.0.0 Official Launch! 🎉
This milestone release marks the official 1.0.0 launch of Gram:
- Brand-New Website & Documentation: Rebuilt using Astro and Starlight with refined guides and an integrated blog.
- Refreshed Visual Identity: Brand-new logo.
- Infrastructure & Stability: Monorepo stability, test coverage, and migration to self-hosted Forgejo (
git.gram-lang.org) mirrored to GitHub and Codeberg.
0.2.0-beta.0
Minor Changes
938afcd: Add an interactive Gantt Chart view to the VS Code extension and export reusable Gantt chart rendering helpers (toGanttHTML,attachGanttInteractivity) from@gram-lang/renderer. Provides a real-time timeline visualization of recipe steps, background timers, and target serving times directly in your editor and the web playground.
Patch Changes
064ba9f: Fixed syntax highlighting (TextMate grammar): a bare@ingredient,#cookware, or<@parentmention with no{}of its own would have its highlighted span incorrectly extend all the way to the next unrelated{...}on the line (e.g. a later&reference{}), coloring everything in between as if it were part of the same name. The name-matching patterns now stop at@,#,~,^, and&, the same sigils the compiler itself stops at.- Updated dependencies [
7b246ae] - Updated dependencies [
22190b8] - Updated dependencies [
23e4286] - Updated dependencies [
19a9f19] - Updated dependencies [
73fde5e] - Updated dependencies [
3fae598] - Updated dependencies [
a55dca8] - Updated dependencies [
d61d786] - Updated dependencies [
2ed4707] - Updated dependencies [
96bfbee] - Updated dependencies [
938afcd]- @gram-lang/renderer@1.0.0-beta.5
- @gram-lang/language-server@1.0.0-beta.5
0.1.4-beta.0
Patch Changes
- Updated dependencies [
fc47a86]- @gram-lang/language-server@1.0.0-beta.4
1.0.0-beta.3
Patch Changes
- Downgrade minimum VS Code version requirement to 1.75.0
- Updated deployment configuration to automate npmjs packages publication
- Updated dependencies
- @gram-lang/language-server@1.0.0-beta.3
1.0.0-beta.2
Minor Changes
a46c24f: Upgraded all monorepo dependencies to their latest versions and implemented a TypeScript 7 dual setup for faster typechecking while preserving compilation toolchain compatibility. Fixed type errors arising from Node 26 and VS Code LSP v10 updates.
Patch Changes
- Updated dependencies [
6e09879] - Updated dependencies [
404198a] - Updated dependencies [
6eab9b3] - Updated dependencies [
a46c24f]- @gram-lang/language-server@1.0.0-beta.2
1.0.0-beta.1
Minor Changes
-
a244341: Major overhaul of the documentation and playground infrastructure:- Documentation Rewrite & i18n: The documentation has been completely rewritten, thoroughly verified, and is now fully translated into French (in addition to the English version).
- Advanced Vue 3 Playground: The legacy playground has been removed and rebuilt from the ground up using Vue 3. This new version is directly integrated into the documentation and introduces powerful new features, including recipe scaling and baker's math.
-
a1e6fe9: refactor: renameisAsynctoisPassiveto align with domain terminologyTo better align the codebase with the actual domain model of a kitchen, the "asynchronous" timer concept has been completely renamed to "passive". This introduces the following breaking changes for tool builders:
- AST: The
TimerASTnode propertyisAsync: booleanis nowisPassive: boolean. - CSS: The
.timer.asyncclass generated by the renderer has been renamed to.timer.passive. - Kitchen Metrics: All internal variables and comments referring to
asyncbackground tasks have been updated topassive.
- AST: The
Patch Changes
-
9ff4563: - Playground: Migrated syntax highlighting engine from Highlight.js to Shiki. The playground now natively uses the official VSCode TextMate grammar, ensuring 100% consistency across environments.- VSCode Extension: Improved syntax coloring by mapping custom Gram tokens (cookware, intermediate ingredients, units) to standard semantic TextMate scopes, restoring vibrant and legible colors across all VSCode themes.
-
6013e64: Refactor TextMate grammar to@gram-lang/parserThe TextMate grammar (
gram.tmLanguage.json) has been moved from@gram-lang/vscode-extensionto@gram-lang/parserto colocate the structural (Ohm) and lexical (TextMate) definitions of the Gram language.This resolves architectural issues where consumers like the playground had to perform brittle, deep relative imports into the VSCode extension package. The syntax grammar is now officially exported and accessible via
@gram-lang/parser/textmate. -
Updated dependencies [
a1e6fe9] -
Updated dependencies [
02d63ff]- @gram-lang/language-server@1.0.0-beta.1
1.0.0-beta.0
Major Changes
-
2dcd766: Introduction of the official GRAM CLI (@gram-lang/cli), a comprehensive command-line tool to manage, compile, and interact with your recipes.Project & Recipe Management:
- Project Setup:
gram initsafely scaffolds a.gramenvironment, including interactive AI provider setup (Google, OpenAI, Anthropic, Ollama) and secret management. - Automated Import:
gram importscrapes recipes from any URL and uses AI to flawlessly translate and convert them into native.gramsyntax. - Validation & Compilation:
gram checkinstantly validates syntax and database integrity.gram buildcompiles recipes to robust JSON with full physical and nutritional enrichment. - Smart Scaling & Diff:
gram scaledynamically resizes recipes (e.g.,--scale flour=300g) with a visual before/after comparison.gram diffprovides a semantic "git diff" for cooking, tracking changes in quantities, timings, and steps. - Export & Print:
gram printgenerates a beautifully typeset A4 HTML recipe card.gram exportconverts recipes to clean Markdown or static HTML. - Auto-formatting & Watcher:
gram formatautomatically enforces.gramlanguage styling standards.gram watchprovides real-time validation upon saving.
Interactive Cooking & Daily Use:
- Terminal Cooking Assistant (
gram cook): A step-by-step interactive TUI (Terminal User Interface) that guides you through the recipe, featuring a dynamic ingredient checklist and live background timers. - Smart Shopping List (
gram shop): Aggregates ingredients across multiple recipes, automatically converting volumes to masses and sorting them by supermarket aisle. - Recipe Search (
gram suggest): An alias-aware search engine to find recipes based on your available ingredients (e.g.,--with "butter, eggs" --without "milk"). - Rich Terminal Preview (
gram view): Renders recipes directly in the terminal with color coding, active timers, and nutritional tables.
AI-Powered Database Management (
gram db):- Smart Database Sync & Enrichment:
gram db syncautomatically tracks new ingredients across your project.gram db enrichuses AI to automatically fill in missing densities, unit weights, categories, and nutrition facts. - Semantic Linting & Conflict Resolution:
gram db lintuses AI to detect plural mistakes and semantic duplicates (e.g.,scallionvsgreen onion).gram db mergehandles conflicts when integrating external community databases.
- Project Setup:
Minor Changes
-
79105ce: Complete overhaul of the VS Code Extension with Language Server, Live Preview, and advanced assistanceMajor New Features:
- Full Language Server (LSP): The extension now ships with a complete language server. All advanced features activate instantly upon opening a
.gramfile. - Dynamic Live Preview: A side-by-side WebView panel displaying the real-time HTML render of the recipe as you type.
- Gracefully handles syntax errors via a visual fallback.
- Integrates the official Playground styles for perfect consistency.
- CodeLens & Inlay Hints:
- Inlay Hints: Displays the cumulative total time in gray next to section titles.
- CodeLens: Clickable buttons
▶ Previewand📊 Macrosabove the main recipe title for quick access.
Ingredient Database & Nutrition:
- Automatic Loading: Automatically detects and loads
.gram/ingredients.yamlfrom the workspace root (or via the path configured ingram.ingredientDatabase.pathsettings). Optimized indexing (O(1)) for maximum performance. - Seamless Plural Management: The extension silently handles plurals (e.g.,
@carrots{3}will automatically matchcarrot). No error diagnostics are raised, everything is transparent. - Nutritional Hover & Macros Panel:
- Hovering over an ingredient displays a complete nutritional table (calories, proteins, carbs, fats, etc.).
- The Live Preview integrates a Macros panel (hidden by default) that can be shown via CodeLens, featuring clear visual alerts for ingredients missing data.
- Fuzzy Matching "Did you mean?": Levenshtein algorithm (distance ≤ 2) suggests corrections if an ingredient is misspelled (e.g.,
@tomaatosuggests@tomato). Directly integrated into Quick Fix code actions. - On-Hover Unit Conversion: Automatically converts volumes (ml, tbsp, etc.) to grams when hovering over an ingredient if its density is known in the database.
Editing Assistance & Navigation:
- Advanced Contextual Autocompletion:
- After
@: Suggests ingredients and their aliases from the YAML database. Automatically adds curly braces{}for multi-word names. - After
&: Suggests only the existing intermediate declarations in the document. - Inside
{}: Suggests canonical units (mass, volume, time) and their aliases (French/English) as soon as a digit is typed.
- After
- Smart Navigation:
- Go to Definition (
Ctrl+Click/F12) on a&refreference to jump to its->&refdeclaration. - Find All References (
Shift+F12) to list all usages of an intermediate. - Rename Symbol (
F2) to atomically rename an intermediate (declaration + references). - Outline Panel showing the hierarchy of sections and elements, with foldable code in the gutter.
- Go to Definition (
- Intermediate Hover: Displays the full text of the step where the intermediate was created.
Diagnostics & Code Actions (Quick Fixes):
- Real-Time Diagnostics:
- Red underline for an orphaned
&refreference. - Warning for an unused
->&refdeclaration. - Warning if the frontmatter (title) is missing.
- Red underline for an orphaned
- Code Actions (💡):
- Quick Fix: Insert the missing
title:in the frontmatter. - Quick Fix: Remove an unused intermediate declaration.
- Quick Fix: Declare a missing intermediate for an existing reference.
- Refactor: Convert a volume quantity to mass directly in the code.
- Refactor: Replace a misspelled ingredient with the closest Fuzzy match suggestion.
- Quick Fix: Insert the missing
Semantic Highlighting, Formatting & Snippets:
- Semantic Tokens: Regex-based syntax highlighting (TextMate) is replaced by AST-driven highlighting. Offers surgical precision for ingredients, timers, temperatures, comments, and nested units (e.g., precise separation of value and unit in
{10g}). - Auto-formatting (
Alt+Shift+F):- Normalization of spaces inside curly braces (
{ 200 g }→{200g}). - Normalization of composite ingredients (
@a < @b→@a<@b). - Alignment of section titles and tab-to-space conversions.
- Normalization of spaces inside curly braces (
- Built-in Snippets: Keyboard shortcuts for the basic structure (frontmatter, sections, steps), ingredient variants (
@ing,@?,@-), cookware (#cw), and timers/temperatures.
- Full Language Server (LSP): The extension now ships with a complete language server. All advanced features activate instantly upon opening a
-
babbb20: Core language update to enforce new syntax adjustments (breaking changes).- Grammar & Parsing:
- Made
{}optional for single-word ingredients. - Replaced temperature symbol with
°. - Replaced async timers with
~&{}. - Replaced aliases brackets with
:. - Tightened
<@with no spaces allowed. - Added fixed modifier
=. - Mandatory
@&inside relative quantities declarations. (e.g:@water{60% @&flour}) - Top-Level Support: Allowed writing comments and recipe steps globally, anywhere in the document (even before the first
## Section).
- Made
- Compiler Analysis:
- Added
INVALID_MODIFIER_COMBINATIONwarnings. - Updated AST transformations to support the new modifiers parsing rules and the implicit top-level sections grouping.
- Added
- Grammar & Parsing:
-
babbb20: Aligned visual tooling and test recipes with the new grammar.GramHighlight.ts(Playground & VSCode): Updated all syntax highlighting regular expressions to accurately match the new syntax (new temperature symbols, updated modifiers, etc.).- Examples (
basquaise_chicken.gram,lemon_meringue_pie.gram,torture.gram): Fully migrated recipe code to comply with the new grammar.
-
caf1630: Major architecture refactoring, ESM Migration, performance optimizations and code cleanup -
babbb20: Complete overhaul of the documentation to reflect the new syntax changes.
Patch Changes
- Updated dependencies [
6e95e35] - Updated dependencies [
79105ce] - Updated dependencies [
caf1630] - Updated dependencies [
2dcd766]- @gram-lang/language-server@1.0.0-beta.0
0.10.1
0.10.0
Patch Changes
3720644: Added Zod to automatically catch invalid data and prevent crashes.
0.9.0
Minor Changes
2963b48: Ingredients states (@ingredient:state{}) are removed. While the idea was to better organize the ingredient's database, it just happened to be too confusing to use.2963b48: Extracted analyzer logic (mass normalization, yield management, nutritional estimation) into its own package. Ingredients database must now be provided by the user.