Skip to content

Commit 9617abf

Browse files
committed
fix(tree-sitter-dotprompt): remove internal markup from end-user features
1 parent bb87a74 commit 9617abf

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

packages/treesitter/grammar.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ module.exports = grammar({
6363
$.handlebars_block,
6464
$.handlebars_expression,
6565
$.handlebars_comment,
66-
$.dotprompt_marker,
6766
$.text
6867
),
6968

@@ -135,9 +134,6 @@ module.exports = grammar({
135134

136135
boolean: ($) => choice('true', 'false'),
137136

138-
dotprompt_marker: ($) =>
139-
seq('<<<dotprompt:', alias(/[^>]+/, $.marker_content), '>>>'),
140-
141-
text: ($) => /[^{<#]+|\{|<|#/,
137+
text: ($) => /[^{#]+|\{|#/,
142138
},
143139
});

packages/treesitter/test/corpus/basic.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,6 @@ COMMENT
114114
(handlebars_comment)
115115
(text)))
116116

117-
================================================================================
118-
DOTPROMPT MARKER
119-
================================================================================
120-
121-
<<<dotprompt:role:system>>>
122-
123-
--------------------------------------------------------------------------------
124-
125-
(document
126-
(template_body
127-
(dotprompt_marker
128-
(marker_content))
129-
(text)))
130-
131117
================================================================================
132118
FRONTMATTER WITH CONFIG
133119
================================================================================

0 commit comments

Comments
 (0)