Skip to content

Commit

Permalink
added fixed.html to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
draegtun committed Feb 4, 2015
1 parent caf33ae commit fcd8332
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 68 deletions.
6 changes: 6 additions & 0 deletions build/build-test-html-files.reb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ write %not-working.html html/fulfil [
'genre "Highlighting not working in lang-rebol.js (using sunburst CSS)"
]

write %fixed.html html/fulfil [
'css (rejoin [html/default-snippets/css newline read-snippet %snippets/sunburst-css.html])
'example-code (read-snippet %fixed.rebol)
'genre "Highlighting now working in lang-rebol.js (using sunburst CSS)"
]

write %real-example.html html/fulfil [
'css (rejoin [html/default-snippets/css newline read-snippet %snippets/desert-css.html])
'example-code (read-snippet %real-example.rebol)
Expand Down
1 change: 1 addition & 0 deletions build/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ diff test-rebol-sunburst.html ../test-rebol-sunburst.html
diff test-rebol-Stackoverflow.html ../test-rebol-Stackoverflow.html
diff test-rebol.html ../test-rebol.html
diff not-working.html ../not-working.html
diff fixed.html ../fixed.html
diff real-example.html ../real-example.html
diff lang-rebol.js ../lang-rebol.js
diff all-keywords.html ../all-keywords.html
67 changes: 67 additions & 0 deletions build/fixed.rebol
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Rebol []

; Fixed issues - kept here for regression checking
;
; So below should all work now :)

literal: [the'end]

ok_filename: %file%20with%20space.txt
bad_filename: %"file with space.txt" ; probably best as this anyway
also: %1111.txt ; allows leading numbers

tuples: [333.333.333 444.444.444.444 555.555.555.555.555] ; only defined 3 & 4 tuples at moment

; Decided to make set-word! RE tighter so avoid pollution elsewere
; NB. (though original did seem fine without this check)
bad-setword:[print "must have space before block"]
good-setword: [print "I'm all good"]


; some keyword issues

print
print["must be space after keyword to highlight it"]
print ["this works fine"]

; and will (nearly) always highlight word as keyword (often useful indicator!)
print: func [replace] [print replace] ; this is all fine (by luck!)
print: func [replace x] [print [replace x]] ; this time "replace" is hi-lighted as keyword
foo: does [print]
; NB - Keywords will be highlighted as keyword when preceded by whitespace

; refinements! have issues so not included
ref: [/refinement]


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; other edge cases just have to live with (for now)

xxx-replace: xxx-replace - no-xxx-replacethis-xxxreplace-foo ; \b JS issue

; number datatypes funnies
num1: num2 + num2for

; set-word! path!
block/(1 + baz/1): constants/(1 + length? foo)

; type! issues
num!ber: num!ber + 1



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; not implemented but may do in future

; see undefined types in GCP-datatypes.r
; utf-8 usage


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; tag! - Can't do :(
; * GCP doesn't like html tags unless they're escape
; * ref: http://stackoverflow.com/questions/7787834/using-google-prettify-to-display-html-and-css-code-do-i-have-to-replace-every


; below should highlight correctly! (just a highlighting placeholder!)
print "hello world"
1 change: 1 addition & 0 deletions build/mv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ mv lang-rebol.js ..
mv not-working.html ..
mv real-example.html ..
mv all-keywords.html ..
mv fixed.html ..
62 changes: 0 additions & 62 deletions build/not-working.rebol
Original file line number Diff line number Diff line change
Expand Up @@ -8,67 +8,5 @@ multline-str: {
end
}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Some edge cases happy to live with

literal: [the'end]

ok_filename: %file%20with%20space.txt
bad_filename: %"file with space.txt" ; probably best as this anyway
also: %1111.txt ; allows leading numbers

tuples: [333.333.333 444.444.444.444 555.555.555.555.555] ; only defined 3 & 4 tuples at moment

; Decided to make set-word! RE tighter so avoid pollution elsewere
; NB. (though original did seem fine without this check)
bad-setword:[print "must have space before block"]
good-setword: [print "I'm all good"]


; some keyword issues

print
print["must be space after keyword to highlight it"]
print ["this works fine"]

; and will (nearly) always highlight word as keyword (often useful indicator!)
print: func [replace] [print replace] ; this is all fine (by luck!)
print: func [replace x] [print [replace x]] ; this time "replace" is hi-lighted as keyword
foo: does [print]
; NB - Keywords will be highlighted as keyword when preceded by whitespace

; refinements! have issues so not included
ref: [/refinement]


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; other edge cases just have to live with (for now)

xxx-replace: xxx-replace - no-xxx-replacethis-xxxreplace-foo ; \b JS issue

; number datatypes funnies
num1: num2 + num2for

; set-word! path!
block/(1 + baz/1): constants/(1 + length? foo)

; type! issues
num!ber: num!ber + 1



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; not implemented but may do in future

; see undefined types in GCP-datatypes.r
; utf-8 usage


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; tag! - Can't do :(
; * GCP doesn't like html tags unless they're escape
; * ref: http://stackoverflow.com/questions/7787834/using-google-prettify-to-display-html-and-css-code-do-i-have-to-replace-every


; below should highlight correctly! (just a highlighting placeholder!)
print "hello world"
8 changes: 2 additions & 6 deletions fixed.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<h1>Rebol</h1>
<h2>Highlighting not working in lang-rebol.js (using sunburst CSS)</h2>
<h2>Highlighting now working in lang-rebol.js (using sunburst CSS)</h2>

<pre class="prettyprint lang-rebol">
Rebol []
Expand All @@ -26,7 +26,6 @@ <h2>Highlighting not working in lang-rebol.js (using sunburst CSS)</h2>
;
; So below should all work now :)


literal: [the'end]

ok_filename: %file%20with%20space.txt
Expand Down Expand Up @@ -81,13 +80,10 @@ <h2>Highlighting not working in lang-rebol.js (using sunburst CSS)</h2>


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; tag!
; tag! - Can't do :(
; * GCP doesn't like html tags unless they're escape
; * ref: http://stackoverflow.com/questions/7787834/using-google-prettify-to-display-html-and-css-code-do-i-have-to-replace-every
; Below use html entities

simple-tag: &lt;div id="class"&gt;testing&lt;/div&gt;
nested-tag: &lt;div id="class"&gt;&lt;span&gt;testing&lt;span&gt;&lt;/div&gt;

; below should highlight correctly! (just a highlighting placeholder!)
print "hello world"
Expand Down

0 comments on commit fcd8332

Please sign in to comment.