File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -333,13 +333,17 @@ that should be commented under LaTeX-style literate scripts."
333333 ; ; This still gets fooled with "'"'"'"'"'"', but ... oh well.
334334 (" \\ Sw\\ ('\\ )\\ ([^\\ '\n ]\\ |\\\\ .[^\\ '\n \" }]*\\ )\\ ('\\ )" (1 " \" " ) (3 " \" " ))
335335 ; ; Deal with instances of `--' which don't form a comment
336- (" [!#$%&*+./:<=>?@^|~\\ -]\\ {3,\\ }" (0 (cond ((or (nth 3 (syntax-ppss )) (numberp (nth 4 (syntax-ppss ))))
337- ; ; There are no such instances inside nestable comments or strings
336+ (" [!#$%&*+./:<=>?@^|~\\ ]*--[!#$%&*+./:<=>?@^|~\\ -]*" (0 (cond ((or (nth 3 (syntax-ppss )) (numberp (nth 4 (syntax-ppss ))))
337+ ; ; There are no such instances inside
338+ ; ; nestable comments or strings
338339 nil )
339340 ((string-match " \\ `-*\\' " (match-string 0 ))
340- ; ; Sequence of hyphens. Do nothing in
341+ ; ; Sequence of hyphens. Do nothing in
341342 ; ; case of things like `{---' .
342343 nil )
344+ ((string-match " \\ `[^-]+--.*" (match-string 0 ))
345+ ; ; Extra characters before comment starts
346+ " ." )
343347 (t " ." )))) ; other symbol sequence
344348
345349 ; ; Implement Haskell Report 'escape' and 'gap' rules. Backslash
You can’t perform that action at this time.
0 commit comments