# Emacs syntax highlighting error

**URL:** <https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083>\
**Category:** Ruby\
**Created:** [January 12, 2006, 4:22am UTC](https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083 "2006-01-12T04:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agnathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Post date:** [January 12, 2006, 4:22am UTC](https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083/1 "2006-01-12T04:22:43Z")

</div>

I am getting an error in GNU Emacs with ruby syntax highlighting.

\<\<\< CODE \>\>\>  
foo = “’?”

def blah  
end  
\<\<\< CODE \>\>\>

The highlighting for the string goes on.

– Daniel

---

<div class="post-metadata">

**Author:** ![agnathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Post date:** [January 14, 2006, 2:56am UTC](https://www.ruby-forum.com/t/emacs-syntax-highlighting-error/95083/2 "2006-01-14T02:56:40Z")

</div>

Daniel H. wrote:

> I am getting an error in GNU Emacs with ruby syntax highlighting.
> 
> \<\<\< CODE \>\>\>  
> foo = “'?”
> 
> def blah  
> end  
> \<\<\< CODE \>\>\>
> 
> The highlighting for the string goes on.

Is it due to the ’ to the left of the ? (?).  
If you remove the ’ it seems to display correctly.

–

Links: [http://del.icio.us/furlan](http://del.icio.us/furlan)

Home: [http://thispaceavailable.uxb.net/index.html](http://thispaceavailable.uxb.net/index.html)

“The whole world is about three drinks behind.” – Humphrey Bogart
