Browse Source

Changed block code tags

master
Ben Ashton 2 years ago
parent
commit
2a6e78d67b
  1. 6
      example_templates/code_block.n0m
  2. 4
      src/token_stream.mjs

6
example_templates/code_block.n0m

@ -1,5 +1 @@
<h1>Hello</h1>
${
echo "hello world";
echo "\}$";
}$
<{ echo "hi" }>

4
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 = '<!%';

Loading…
Cancel
Save