Anyway, using emacs 20.7 I find that 'commenting out' chunks of xsl only works reliably (in terms of xslide handling staining and tabbing correctly) when there are no newlines between <!-- and -->
Remove:
; ;;
; ;; Put comment patterns last so they mask anything
; ;; that might be inside the comment
; ;;
; '("\\(<!--[^-]*\\(-[^-]+\\)*-->\\)"
; (1 font-lock-comment-face t))
Add:
;; Put comment patterns last so they mask anything
;; that might be inside the comment
; the following creates a loop on finding <!-- ... >
;'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)*-->\\)"
; this creates a loop on finding <!-- ... -->
;'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)+>\\)"
; This highlights this comment start to finish, or up to the
start of the
; next comment and doesn't create a loop.
'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)+\\(>\\|-->\\)\\)"
(1 font-lock-comment-face t)
)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=750563
I have a fix for this. I'll try to post it soon.
Logged In: YES
user_id=750563
Here's a fix for multi-line comment staining.
In xslide-font.el:
Remove:
; ;;
; ;; Put comment patterns last so they mask anything
; ;; that might be inside the comment
; ;;
; '("\\(<!--[^-]*\\(-[^-]+\\)*-->\\)"
; (1 font-lock-comment-face t))
Add:
;; Put comment patterns last so they mask anything
;; that might be inside the comment
; the following creates a loop on finding <!-- ... >
;'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)*-->\\)"
; this creates a loop on finding <!-- ... -->
;'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)+>\\)"
; This highlights this comment start to finish, or up to the
start of the
; next comment and doesn't create a loop.
'("\\(<!--[^-]\\([^-]+\\|\\n\\|-[^-]\\)+\\(>\\|-->\\)\\)"
(1 font-lock-comment-face t)
)
Logged In: YES
user_id=750563
Whoops! You'll have to replace the ampersand-quot-
semicolon with a regular double-quote. This is kind of a
difficult way to submit changes.