githubramakrishnan / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

lang-lisp: things go wrong with single-quotes ('some) #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The following code shows the problem:

<pre class="prettyprint lang-lisp">
(print 'Foo)
(print 'Bar)
</pre>

What is the expected output?

I expect 'Foo and 'Bar to be green.

What do you see instead?

Only the first 'Foo is green, and the second "print" is green too (which is not 
right). Obviously, the colorer thinks that something BETWEEN single  quotes 
(i.e. 'Foo (print ' in this case) should be marked as a string literal, while 
in fact, the S-expression that FOLLOWS a single quote should be marked so.

What version are you using?  On what browser?

I am using the version from trunk on Google Chrome.

Please provide any additional information below.

Full HTML code attached.

Original issue reported on code.google.com by dmitry.p...@gmail.com on 7 Nov 2011 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
Add

    <script src='http://google-code-prettify.googlecode.com/svn/trunk/src/lang-lisp.js' type='text/javascript'></script>

after the <script> that loads prettify.js to register the lisp language 
handler, and it should work.

Original comment by mikesamuel@gmail.com on 30 Mar 2012 at 6:15

GoogleCodeExporter commented 9 years ago
lang-lisp.js doesn't appear to fix this issue. 

Original comment by jason...@gmail.com on 29 Jun 2012 at 1:43