Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-216
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Martin Bravenboer
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Stratego/XT

Emacs mode: recognize /* */ en /** */ as comments.

Created: 2004-12-12 13:09   Updated: 2008-03-31 20:39
Component/s: stratego-util
Affects Version/s: 0.12
Fix Version/s: 0.14

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Currently, only the oldskool (* *) seems to be a comment in the emacs mode.

 All   Comments   Work Log   Change History      Sort Order:
Martin Bravenboer [2004-12-12 15:32]
I've searched a bit for solutions in other modes, and this seems to be the solution:


  (make-local-variable 'comment-start)
  (make-local-variable 'comment-end)
  (make-local-variable 'comment-start-skip)

(setq comment-start "/* "
comment-end " */"
comment-start-skip "/\\*[ \n\t]+")

; Setting up syntax table
  (modify-syntax-entry ?* ". 23")
  (modify-syntax-entry ?/ ". 14")