/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/parser/expression_feature.test
58 строк
1 KB
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
((3-(9-2))*4) ^eval(4+2) <div class="foo-^eval(4+2)"> ---------------------------------------------------- [ ["expression", [ ["punctuation", "("], ["punctuation", "("], ["number", "3"], ["operator", "-"], ["punctuation", "("], ["number", "9"], ["operator", "-"], ["number", "2"], ["punctuation", ")"], ["punctuation", ")"], ["operator", "*"], ["number", "4"], ["punctuation", ")"] ]], ["keyword", "^eval"], ["expression", [ ["punctuation", "("], ["number", "4"], ["operator", "+"], ["number", "2"], ["punctuation", ")"] ]], ["tag", [ ["tag", [ ["punctuation", "<"], "div" ]], ["attr-name", ["class"]], ["attr-value", [ ["punctuation", "="], ["punctuation", "\""], "foo-", ["keyword", "^eval"], ["expression", [ ["punctuation", "("], ["number", "4"], ["operator", "+"], ["number", "2"], ["punctuation", ")"] ]], ["punctuation", "\""] ]], ["punctuation", ">"] ]] ] ---------------------------------------------------- Checks for expressions, up to 3 levels of depth.