Skip to content

Commit

Permalink
SDF3 placeholder syntax configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka authored Jun 21, 2024
1 parent 567a944 commit b857301
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ The following `Sdf3FilesOption`s are supported:
| `include-directory = $Expression` | no | Adds an include directory from which to resolve SDF3 imports. May be given multiple times. | Path |
| `export-directory = $Expression` | no | Exports a directory, making the SDF3 files in it accessable to dependencies. May be given multiple times. | Path |
| `parse-table-generator { $ParseTableGeneratorOption* }` | no | Parse table generator options. | n/a |
| `placeholders { $PlaceholderOption* }` | no | Placeholder syntax used in code completion. | n/a |
| `stratego-concrete-syntax-extension-main-file = $Expression` | no | Sets the main SDF3 file used to create a concrete syntax extension parse table. | Path |

The following `$Sdf3PrebuiltOption`s are supported:
Expand All @@ -433,6 +434,13 @@ The following `ParseTableGeneratorOption`s are supported:
| `check-overlap = $Expression` | no | Whether the parse table generator checks for overlap. Defaults to `false`. | Boolean |
| `check-priorities = $Expression` | no | Whether the parse table generator checks priorities. Defaults to `false`. | Boolean |

The following `PlaceholderOption`s are supported:

| Syntax | Required? | Description | Type |
| - | - | - | - |
| `prefix = $Expression` | no | The prefix to a placholder. Defaults to `[[`, or empty if the other is defined. | String |
| `postfix = $Expression` | no | The postfix to a placeholder. Defaults to `]]`, or empty if the other is defined. | String |

### ESV

The `esv { $EsvOption* }` section enables syntax-based styling definition with [ESV](https://www.spoofax.dev/references/editor-services/esv/).
Expand Down

0 comments on commit b857301

Please sign in to comment.