Fixed: test case for scheme
This commit is contained in:
parent
05d65dac6a
commit
4bbf4e7ac0
3 changed files with 36 additions and 72 deletions
|
|
@ -90,7 +90,7 @@ var docs = {
|
||||||
"docs/latex.tex": {name: "LaTeX", wrapped: true},
|
"docs/latex.tex": {name: "LaTeX", wrapped: true},
|
||||||
"docs/less.less": "LESS",
|
"docs/less.less": "LESS",
|
||||||
"docs/lisp.lisp": "Lisp",
|
"docs/lisp.lisp": "Lisp",
|
||||||
"docs/scheme.scheme": "Scheme",
|
"docs/scheme.scm": "Scheme",
|
||||||
"docs/liquid.liquid": "Liquid",
|
"docs/liquid.liquid": "Liquid",
|
||||||
"docs/lua.lua": "Lua",
|
"docs/lua.lua": "Lua",
|
||||||
"docs/lucene.lucene": "Lucene",
|
"docs/lucene.lucene": "Lucene",
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,11 @@
|
||||||
for CD"
|
for CD"
|
||||||
(prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6))
|
(prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6))
|
||||||
(prompt-read "Artist")
|
(prompt-read "Artist")
|
||||||
(or (parse-integer (prompt-read "Rating") #:junk-allowed t) 0)
|
(or (parse-integer (prompt-read "Rating") #:junk-allowed #t) 0)
|
||||||
(if x (format #t "yes") (format #f "no") ;and here comment
|
(if x (format #t "yes") (format #f "no") ;and here comment
|
||||||
)
|
)
|
||||||
;; second line comment
|
;; second line comment
|
||||||
'(+ 1 2)
|
'(+ 1 2)
|
||||||
(define-syntax get-line
|
|
||||||
(syntax-rules ()
|
|
||||||
((_ x) x))) ; nonsense, just a highlight test
|
|
||||||
(position-if-not char-set:whitespace line #:start beg))
|
(position-if-not char-set:whitespace line #:start beg))
|
||||||
(quote (privet 1 2 3))
|
(quote (privet 1 2 3))
|
||||||
'(hello world)
|
'(hello world)
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
[
|
[[
|
||||||
"start",
|
"start",
|
||||||
["text","("],
|
["text","("],
|
||||||
["storage.type.function-type.scheme","define"],
|
["storage.type.function-type.scheme","define"],
|
||||||
["text"," "],
|
["text"," ("],
|
||||||
["entity.name.function.scheme","prompt-for-cd"],
|
["identifier","prompt-for-cd"],
|
||||||
["text"," ()"]
|
["text",")"]
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," "],
|
["text"," "],
|
||||||
|
|
@ -19,9 +19,7 @@
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["identifier","prompt"],
|
["identifier","prompt-read"],
|
||||||
["text","-"],
|
|
||||||
["identifier","read"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"Title\""],
|
["string","\"Title\""],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
|
|
@ -43,23 +41,19 @@
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["constant.numeric","-7"],
|
["constant.numeric","-7"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["constant.numeric","#b001"],
|
||||||
["constant.character.scheme","b001"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["constant.numeric","#b001"],
|
||||||
["constant.character.scheme","b001/100"],
|
["text","/"],
|
||||||
|
["constant.numeric","100"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["constant.numeric","#o777"],
|
||||||
["constant.character.scheme","o777"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["constant.numeric","#O777"],
|
||||||
["constant.character.scheme","O777"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["constant.numeric","#xabc55"],
|
||||||
["constant.character.scheme","xabc55"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
["identifier","#c"],
|
||||||
["constant.character.scheme","c"],
|
|
||||||
["text","("],
|
["text","("],
|
||||||
["constant.numeric","0"],
|
["constant.numeric","0"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
|
|
@ -68,34 +62,24 @@
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["identifier","prompt"],
|
["identifier","prompt-read"],
|
||||||
["text","-"],
|
|
||||||
["identifier","read"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"Artist\""],
|
["string","\"Artist\""],
|
||||||
["text"," &"],
|
|
||||||
["identifier","rest"],
|
|
||||||
["text",")"]
|
["text",")"]
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["keyword.operator","or"],
|
["keyword.operator","or"],
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["identifier","parse"],
|
["identifier","parse-integer"],
|
||||||
["text","-"],
|
|
||||||
["identifier","integer"],
|
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["identifier","prompt"],
|
["identifier","prompt-read"],
|
||||||
["text","-"],
|
|
||||||
["identifier","read"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"Rating\""],
|
["string","\"Rating\""],
|
||||||
["text",") :"],
|
["text",") "],
|
||||||
["identifier","junk"],
|
["punctuation.definition.constant.character.scheme","#:junk-allowed"],
|
||||||
["text","-"],
|
|
||||||
["identifier","allowed"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["support.function","t"],
|
["constant.language","#t"],
|
||||||
["text",") "],
|
["text",") "],
|
||||||
["constant.numeric","0"],
|
["constant.numeric","0"],
|
||||||
["text",")"]
|
["text",")"]
|
||||||
|
|
@ -108,25 +92,20 @@
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["support.function","format"],
|
["support.function","format"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["support.function","#t"],
|
["constant.language","#t"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"yes\""],
|
["string","\"yes\""],
|
||||||
["text",") ("],
|
["text",") ("],
|
||||||
["support.function","format"],
|
["support.function","format"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["support.function","#t"],
|
["constant.language","#f"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"no\""],
|
["string","\"no\""],
|
||||||
["text"," "],
|
|
||||||
["constant.language","#f"],
|
|
||||||
["text",") "],
|
["text",") "],
|
||||||
["comment",";and here comment"]
|
["comment",";and here comment"]
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ) "],
|
["text"," ) "]
|
||||||
["constant.numeric","0xFFLL"],
|
|
||||||
["text"," "],
|
|
||||||
["constant.numeric","-23ull"]
|
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," "],
|
["text"," "],
|
||||||
|
|
@ -141,28 +120,15 @@
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ("],
|
["text"," ("],
|
||||||
["identifier","define"],
|
["identifier","position-if-not"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["punctuation.definition.variable.scheme","*"],
|
["identifier","char-set"],
|
||||||
["variable.other.global.scheme","lines"],
|
["text",":"],
|
||||||
["punctuation.definition.variable.scheme","*"],
|
["identifier","whitespace"],
|
||||||
["text",") "],
|
|
||||||
["comment","; list of all lines"]
|
|
||||||
],[
|
|
||||||
"start",
|
|
||||||
["text"," ("],
|
|
||||||
["identifier","position"],
|
|
||||||
["text","-"],
|
|
||||||
["keyword.control","if"],
|
|
||||||
["text","-"],
|
|
||||||
["identifier","not"],
|
|
||||||
["text"," "],
|
|
||||||
["punctuation.definition.constant.character.scheme","#"],
|
|
||||||
["constant.character.scheme","'sys::whitespacep"],
|
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["identifier","line"],
|
["identifier","line"],
|
||||||
["text"," :"],
|
["text"," "],
|
||||||
["identifier","start"],
|
["punctuation.definition.constant.character.scheme","#:start"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["identifier","beg"],
|
["identifier","beg"],
|
||||||
["text","))"]
|
["text","))"]
|
||||||
|
|
@ -206,8 +172,8 @@
|
||||||
["text",")"]
|
["text",")"]
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," (:"],
|
["text"," ("],
|
||||||
["identifier","use"],
|
["punctuation.definition.constant.character.scheme","#:use"],
|
||||||
["text"," "],
|
["text"," "],
|
||||||
["string","\"aaaa\""],
|
["string","\"aaaa\""],
|
||||||
["text",")"]
|
["text",")"]
|
||||||
|
|
@ -235,8 +201,7 @@
|
||||||
["text","))"]
|
["text","))"]
|
||||||
],[
|
],[
|
||||||
"start",
|
"start",
|
||||||
["text"," ) "],
|
["text"," ) "]
|
||||||
["support.function","LAmbDa"]
|
|
||||||
],[
|
],[
|
||||||
"start"
|
"start"
|
||||||
],[
|
],[
|
||||||
|
|
@ -245,4 +210,6 @@
|
||||||
["string","\"asdad"],
|
["string","\"asdad"],
|
||||||
["constant.character.escape.scheme","\\0"],
|
["constant.character.escape.scheme","\\0"],
|
||||||
["string","eqweqe\""]
|
["string","eqweqe\""]
|
||||||
]]
|
],[
|
||||||
|
"start"
|
||||||
|
]]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue