Skip to content

Commit 60d936b

Browse files
committed
fix(dotprompt-vscode): remove internal markup from end-user features
1 parent bb87a74 commit 60d936b

File tree

3 files changed

+1
-32
lines changed

3 files changed

+1
-32
lines changed

packages/vscode/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This extension provides syntax highlighting, diagnostics, formatting, and langua
66

77
- **Syntax Highlighting**:
88
- YAML Frontmatter
9-
- Dotprompt Markers (e.g., `<<<dotprompt:role:user>>>`)
9+
- Role markers (e.g., `{{role "user"}}`)
1010
- Handlebars syntax (`{{...}}`)
1111
- **Autocomplete**: Context-aware completion for Handlebars and Dotprompt helpers
1212
- **Diagnostics** (requires `promptly`): Real-time error detection for YAML and Handlebars syntax
@@ -86,7 +86,6 @@ Open this folder in VS Code and press `F5` to launch an Extension Development Ho
8686
## Syntax Support
8787

8888
- **Frontmatter**: The extension detects YAML frontmatter enclosed in `---` at the beginning of the file.
89-
- **Markers**: Special Dotprompt markers like `<<<dotprompt:role:system>>>` are highlighted.
9089
- **Handlebars**: Standard Handlebars syntax is supported for dynamic prompt generation.
9190

9291
## Contributing

packages/vscode/snippets/dotprompt.snippets.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@
133133
],
134134
"description": "Insert unlessEquals helper"
135135
},
136-
"Dotprompt Marker": {
137-
"prefix": ["marker", "<<<"],
138-
"body": [
139-
"<<<dotprompt:${1|role:system,role:user,role:model,section:preamble|}>>>"
140-
],
141-
"description": "Insert a Dotprompt marker"
142-
},
143136
"Complete Prompt Template": {
144137
"prefix": ["prompt", "newprompt"],
145138
"body": [

packages/vscode/syntaxes/dotprompt.tmLanguage.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
{
1010
"include": "#frontmatter"
1111
},
12-
{
13-
"include": "#markers"
14-
},
1512
{
1613
"include": "#handlebars"
1714
},
@@ -52,26 +49,6 @@
5249
}
5350
]
5451
},
55-
"markers": {
56-
"patterns": [
57-
{
58-
"match": "(<<<dotprompt:role:[a-z]+>>>)",
59-
"name": "keyword.control.directive.role.dotprompt"
60-
},
61-
{
62-
"match": "(<<<dotprompt:history>>>)",
63-
"name": "keyword.control.directive.history.dotprompt"
64-
},
65-
{
66-
"match": "(<<<dotprompt:media:.*?>>>)",
67-
"name": "keyword.control.directive.media.dotprompt"
68-
},
69-
{
70-
"match": "(<<<dotprompt:section.*?>>>)",
71-
"name": "keyword.control.directive.section.dotprompt"
72-
}
73-
]
74-
},
7552
"handlebars": {
7653
"patterns": [
7754
{

0 commit comments

Comments
 (0)