thrift.el doesn't syntax highlight single line comments correctly in xemacs
---------------------------------------------------------------------------

                 Key: THRIFT-32
                 URL: https://issues.apache.org/jira/browse/THRIFT-32
             Project: Thrift
          Issue Type: Bug
         Environment: [EMAIL PROTECTED]> dpkg -l | grep xemacs                  
                                                                             
1:43PM
ii  xemacs21                          21.4.19-2                           
highly customizable text editor
ii  xemacs21-basesupport              2006.05.10-1                        
Editor and kitchen sink -- compiled elisp su
ii  xemacs21-bin                      21.4.19-2                           
highly customizable text editor -- support b
ii  xemacs21-mule                     21.4.19-2                           
highly customizable text editor -- Mule bina
ii  xemacs21-mulesupport              2006.05.10-1                        
Editor and kitchen sink -- Mule elisp suppor
ii  xemacs21-support                  21.4.19-2                           
highly customizable text editor -- architect

newest thrift.el from git
            Reporter: Todd Lipcon
            Priority: Minor


single line (// style) comments end up syntax highlighting like /* in my 
version of xemacs. The following patch fixes the issue for me:

{code}
diff --git a/thrift.el b/thrift.el
index 736b720..3b9026b 100644
--- a/thrift.el
+++ b/thrift.el
@@ -87,7 +87,7 @@
 (defvar thrift-mode-syntax-table
   (let ((thrift-mode-syntax-table (make-syntax-table)))
     (modify-syntax-entry ?_ "w" thrift-mode-syntax-table)
-    (modify-syntax-entry ?/ ". 124b" thrift-mode-syntax-table)
+    (modify-syntax-entry ?/ ". 1456" thrift-mode-syntax-table)
     (modify-syntax-entry ?* ". 23" thrift-mode-syntax-table)
     (modify-syntax-entry ?\n "> b" thrift-mode-syntax-table)
     thrift-mode-syntax-table)
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to