core: better syntax for comment.

[[ foo ]] is a string
``#[[foo]]`` is a turned-off string
modern-harvey3
Doug Coleman 2019-10-20 15:41:34 -05:00
parent 953e6511ee
commit 8a46a16530
2 changed files with 16 additions and 0 deletions

View File

@ -140,6 +140,14 @@ IN: bootstrap.syntax
"![=====["
"![======["
"#[["
"#[=["
"#[==["
"#[===["
"#[====["
"#[=====["
"#[======["
"I[["
"I[=["
"I[==["

View File

@ -420,6 +420,14 @@ IN: bootstrap.syntax
"![=====[" [ "]=====]" parse-multiline-string0 drop ] define-core-syntax
"![======[" [ "]======]" parse-multiline-string0 drop ] define-core-syntax
"#[[" [ "]]" parse-multiline-string0 drop ] define-core-syntax
"#[=[" [ "]=]" parse-multiline-string0 drop ] define-core-syntax
"#[==[" [ "]==]" parse-multiline-string0 drop ] define-core-syntax
"#[===[" [ "]===]" parse-multiline-string0 drop ] define-core-syntax
"#[====[" [ "]====]" parse-multiline-string0 drop ] define-core-syntax
"#[=====[" [ "]=====]" parse-multiline-string0 drop ] define-core-syntax
"#[======[" [ "]======]" parse-multiline-string0 drop ] define-core-syntax
"I[[" [ "]]" define-interpolate-syntax ] define-core-syntax
"I[=[" [ "]=]" define-interpolate-syntax ] define-core-syntax
"I[==[" [ "]==]" define-interpolate-syntax ] define-core-syntax