diff --git a/spec/ass-spec.coffee b/spec/ass-spec.coffee index 29c7748..850b495 100644 --- a/spec/ass-spec.coffee +++ b/spec/ass-spec.coffee @@ -8,6 +8,7 @@ path = require 'path' # Manually specify {fixtures} if you only want to run specific tests. # A {fixture} is a relative path + filename (without extension). # fixtures = [ +# "blocks/fenced-code" # # "flavors/math" # # "inlines/entities" # # "issues" diff --git a/spec/fixtures/blocks/fenced-code.ass b/spec/fixtures/blocks/fenced-code.ass index 2799180..7423f76 100644 --- a/spec/fixtures/blocks/fenced-code.ass +++ b/spec/fixtures/blocks/fenced-code.ass @@ -340,3 +340,328 @@ } } } + +# @issue-168a +# "~~~~{.js}"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# fenced.code.md { +# "~~~~": punctuation.md +# "{": punctuation.md +# ".js": language.constant.md +# "}": punctuation.md +# embedded.source.js { +# "let answer = 42" +# } +# "~~~~": punctuation.md +# } +# quote.markup.md { +# ">": punctuation.md +# " " +# "Quote" +# } +# } +# } + +# @issue-168b +# "~~~~{js}"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# fenced.code.md { +# "~~~~": punctuation.md +# "{": punctuation.md +# "js": language.constant.md +# "}": punctuation.md +# embedded.source.js { +# "let answer = 42" +# } +# "~~~~": punctuation.md +# } +# quote.markup.md { +# ">": punctuation.md +# " " +# "Quote" +# } +# } +# } + +@issue-168c +"~~~~js"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "js": language.constant.md + "" + embedded.source.js { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +@issue-168d +"~~~~ js"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + " " + "js": language.constant.md + "" + embedded.source.js { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } + +} + +@issue-168e +"~~~~{.js }"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "{": punctuation.md + ".js": language.constant.md + " " + "}": punctuation.md + embedded.source.js { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +@issue-168f +"~~~~{js }"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "{": punctuation.md + "js": language.constant.md + " " + "}": punctuation.md + embedded.source.js { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +# @issue-168g +# "~~~~{.unknownscript}"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# fenced.code.md { +# "~~~~": punctuation.md +# "{": punctuation.md +# ".unknownscript": language.constant.md +# "}": punctuation.md +# embedded.source { +# "let answer = 42" +# } +# "~~~~": punctuation.md +# } +# quote.markup.md { +# ">": punctuation.md +# " " +# "Quote" +# } +# } +# } + +# @issue-168h +# "~~~~{unknownscript}"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# fenced.code.md { +# "~~~~": punctuation.md +# "{": punctuation.md +# "unknownscript": language.constant.md +# "}": punctuation.md +# embedded.source { +# "let answer = 42" +# } +# "~~~~": punctuation.md +# } +# quote.markup.md { +# ">": punctuation.md +# " " +# "Quote" +# } +# } +# } + +@issue-168i +"~~~~unknownscript"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "unknownscript": language.constant.md + "" + embedded.source { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +@issue-168j +"~~~~ unknownscript"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + " " + "unknownscript": language.constant.md + "" + embedded.source { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +@issue-168k +"~~~~{.unknownscript }"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "{": punctuation.md + ".unknownscript": language.constant.md + " " + "}": punctuation.md + embedded.source { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +@issue-168l +"~~~~{unknownscript }"+ +"let answer = 42"+ +"~~~~"+ +"> Quote" { + text.md { + fenced.code.md { + "~~~~": punctuation.md + "{": punctuation.md + "unknownscript": language.constant.md + " " + "}": punctuation.md + embedded.source { + "let answer = 42" + } + "~~~~": punctuation.md + } + quote.markup.md { + ">": punctuation.md + " " + "Quote" + } + } +} + +# @issue-168m +# "~~~~{.js"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# "~~~~{.js" +# "let answer = 42" +# fenced.code.md { +# "~~~~": punctuation.md +# embedded.source { +# "> Quote" +# } +# } +# } +# } + +# @issue-168n +# "~~~~{js"+ +# "let answer = 42"+ +# "~~~~"+ +# "> Quote" { +# text.md { +# "~~~~{js" +# "let answer = 42" +# fenced.code.md { +# "~~~~": punctuation.md +# embedded.source { +# "> Quote" +# } +# } +# } +# }