/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/pug/multiline-script_feature.test
58 строк
1 KB
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
script. alert(42); . script(type='text/javascript'). if(foo) { bar(1 + 5); } ---------------------------------------------------- [ ["tag", [ "script" ]], ["punctuation", "."], ["multiline-script", [ ["function", "alert"], ["punctuation", "("], ["number", "42"], ["punctuation", ")"], ["punctuation", ";"] ]], ["punctuation", "."], ["tag", [ "script", ["attributes", [ ["punctuation", "("], ["attr-name", "type"], ["punctuation", "="], ["attr-value", [["string", "'text/javascript'"]]], ["punctuation", ")"] ]] ]], ["punctuation", "."], ["multiline-script", [ ["keyword", "if"], ["punctuation", "("], "foo", ["punctuation", ")"], ["punctuation", "{"], ["function", "bar"], ["punctuation", "("], ["number", "1"], ["operator", "+"], ["number", "5"], ["punctuation", ")"], ["punctuation", ";"], ["punctuation", "}"] ]] ] ---------------------------------------------------- Checks for multi-line scripts. The alone dot serves as a separator.