From 2a6e78d67b0eb898498e3d17d5ce5b982d5a2a2c Mon Sep 17 00:00:00 2001 From: Ben Ashton Date: Sun, 25 Sep 2022 16:20:16 -0600 Subject: [PATCH] Changed block code tags --- example_templates/code_block.n0m | 6 +----- src/token_stream.mjs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/example_templates/code_block.n0m b/example_templates/code_block.n0m index bcacfaf..ef44126 100644 --- a/example_templates/code_block.n0m +++ b/example_templates/code_block.n0m @@ -1,5 +1 @@ -

Hello

-${ - echo "hello world"; - echo "\}$"; -}$ + <{ echo "hi" }> \ No newline at end of file diff --git a/src/token_stream.mjs b/src/token_stream.mjs index e76a074..3c835ad 100644 --- a/src/token_stream.mjs +++ b/src/token_stream.mjs @@ -3,8 +3,8 @@ import { TemplateSyntaxError } from './errors/template_syntax_error.mjs'; export class TokenStream { static ESCAPE = '\\'; - static OPEN_STATEMENT = '${'; - static CLOSE_STATEMENT = '}$'; + static OPEN_STATEMENT = '<{'; + static CLOSE_STATEMENT = '}>'; static OPEN_INLINE = '<%'; static CLOSE_INLINE = '%>'; static OPEN_INLINE_UNESCAPED = '