]> gitweb.factorcode.org Git - factor.git/commitdiff
FUEL: () and (()) are paren syntax only when surronded by word boundaries.
authorJose A. Ortega Ruiz <jao@gnu.org>
Fri, 13 Mar 2009 22:17:31 +0000 (23:17 +0100)
committerJose A. Ortega Ruiz <jao@gnu.org>
Fri, 13 Mar 2009 22:17:31 +0000 (23:17 +0100)
misc/fuel/fuel-syntax.el

index 61a3420048489f460ea301dd91ba86673ec5b774..31e79b7c4a106b6c59c3ac41b43c3c087989ab0d 100644 (file)
     (modify-syntax-entry ?\r " " table)
     (modify-syntax-entry ?\  " " table)
     (modify-syntax-entry ?\n " " table)
-    (modify-syntax-entry ?\( "()" table)
-    (modify-syntax-entry ?\) ")(" table)
     table))
 
 (defconst fuel-syntax--syntactic-keywords
     ;; Parenthesis:
     ("\\_<\\((\\)\\_>" (1 "()"))
     ("\\_<\\()\\)\\_>" (1 ")("))
+    ("\\_<(\\((\\)\\_>" (1 "()"))
+    ("\\_<\\()\\))\\_>" (1 ")("))
     ;; Quotations:
     ("\\_<'\\(\\[\\)\\_>" (1 "(]"))      ; fried
     ("\\_<\\(\\[\\)\\_>" (1 "(]"))