/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/jsx/plain-text_feature.test
57 строк
991 B
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<div> foobar for <div> foobar for </div> foobar for {i == 0 ? 42 : 0}} </div> ---------------------------------------------------- [ ["tag", [ ["tag", [ ["punctuation", "<"], "div" ]], ["punctuation", ">"] ]], ["plain-text", "\r\n\tfoobar for\r\n\t"], ["tag", [ ["tag", [ ["punctuation", "<"], "div" ]], ["punctuation", ">"] ]], ["plain-text", "\r\n\t\tfoobar for\r\n\t"], ["tag", [ ["tag", [ ["punctuation", "</"], "div" ]], ["punctuation", ">"] ]], ["plain-text", "\r\n\tfoobar for "], ["punctuation", "{"], "i ", ["operator", "=="], ["number", "0"], ["operator", "?"], ["number", "42"], ["punctuation", ":"], ["number", "0"], ["punctuation", "}"], ["plain-text", "}\r\n"], ["tag", [ ["tag", [ ["punctuation", "</"], "div" ]], ["punctuation", ">"] ]] ] ---------------------------------------------------- Checks that plain text inside tags is unmatched.