From: Stefan Monnier Date: Thu, 31 Jan 2013 00:58:24 +0000 (-0500) Subject: * lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments. X-Git-Tag: emacs-24.3.90~173^2~7^2~188 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ca243c631deac62bbfa9d39df4a715e6e134aeb;p=emacs.git * lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments. Fixes: debbugs:13585 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5c8237ee4aa..e71240efd97 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-01-31 Stefan Monnier + + * progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments + (bug#13585). + 2013-01-30 Juri Linkov * frame.el (toggle-frame-maximized, toggle-frame-fullscreen): diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index de8a4355cd3..829ecda5150 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el @@ -138,6 +138,9 @@ ;; find about the syntax of Pascal's comments said that (* ... } is ;; a valid comment, just as { ... *) or (* ... *) or { ... }. (modify-syntax-entry ?* ". 23" st) + ;; Allow //...\n comments as accepted by Free Pascal (bug#13585). + (modify-syntax-entry ?/ ". 12c" st) + (modify-syntax-entry ?\n "> c" st) (modify-syntax-entry ?{ "<" st) (modify-syntax-entry ?} ">" st) (modify-syntax-entry ?+ "." st)