File tree 1 file changed +7
-3
lines changed 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."
333
333
; ; This still gets fooled with "'"'"'"'"'"', but ... oh well.
334
334
(" \\ Sw\\ ('\\ )\\ ([^\\ '\n ]\\ |\\\\ .[^\\ '\n \" }]*\\ )\\ ('\\ )" (1 " \" " ) (3 " \" " ))
335
335
; ; 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
338
339
nil )
339
340
((string-match " \\ `-*\\' " (match-string 0 ))
340
- ; ; Sequence of hyphens. Do nothing in
341
+ ; ; Sequence of hyphens. Do nothing in
341
342
; ; case of things like `{---' .
342
343
nil )
344
+ ((string-match " \\ `[^-]+--.*" (match-string 0 ))
345
+ ; ; Extra characters before comment starts
346
+ " ." )
343
347
(t " ." )))) ; other symbol sequence
344
348
345
349
; ; Implement Haskell Report 'escape' and 'gap' rules. Backslash
You can’t perform that action at this time.
0 commit comments